Hi,
I am using the script task to extract the name of a file from the path.
<project default="doNightlyBuild" name="projname">
.
.
.
<script language="javascript"> <![CDATA[
file = new java.io.File(projname.getProperty("nightlyLog"));
projname.setUserProperty("nightlyLogFile", file.getName());
]]>
</script>
.
.
What if my project name has blank spaces in it e.g.
<project default="doNightlyBuild" name="Project Name">
Also , what is the diference between setUserProperty(...) and setProperty(...)?
Regards,
Lokesh