xml - Is this a valid path? -
i have ant build script build project. large takes 40 minutes run. instead of running 40 minutes , failing, i'd thought i'd ask stackoverflow community first. following legal?
<property name="configdir" value="${basedir}/../server"/> the value of ${basedir} c:\workspaces\antbuild\stephen\buildresources
i have .. in value because want access server folder, @ same level buildresources. if there way easier, please let me know. haven't yet found way extract c:\workspaces\antbuild\stephen , append /server end of it. there default environment variable? in xml ant.
you should try :
<property name="configdir" location="../server"/> from ant manual property task :
sets property absolute filename of given file. if value of attribute absolute path, left unchanged (with / , \ characters converted current platforms conventions). otherwise taken path relative project's basedir , expanded.
rule of thumb => when dealing path use location attribute, otherwise value.
Comments
Post a Comment