It would be nice to have an option use relative path in webcontentdeploydirectory property of .ccproject file (e.g.)
Code:
webcontentdeploydirectory="${project}/../Build/CC"
Motivation: the .ccpoject file is under version control and is use by several team members (different OS, paths etc.). As a workaround is to pass that path from outside of the .ccproject file (e.g. environment variable; I saw similar post in that forum, but syntaxes ${env.variable-name} didn't work for me also).
Investigation:
The code above (e.g. webcontentdeploydirectory with ..) leads to the situation, when deploy ignores webcontentdirectory directory completely (i.e. nothing from webcontentdirectory is copying to webcontentdeploydirectory, but deploycopyinfo instructions works correctly).
If I try to copy webcontentdirectory manually
Code:
<deploycopyinfo
fromdir="${project}/webcontent"
todir="${projectdeploy}">
</deploycopyinfo>
I catch deploy time exception
Caused by: org.eclnt.util.valuemgmt.FileNameValidatesSecurityRuleError: File name not allowed - it contains ".."-sequence.
at org.eclnt.util.valuemgmt.ValueManager.approveFileName(ValueManager.java:2477)
at org.eclnt.util.file.FileManager.writeFile(FileManager.java:533)
Can provide complete .ccproject file in case of necessity