ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KapilSingh Pawar <KapilSin...@PLANETASIA.COM>
Subject RE: Variable access
Date Wed, 18 Jul 2001 05:38:44 GMT
I guess that the x.properties should be like:

JAVA_HOME=C:/jdk1.3.0_02
TOMCAT_HOME=C:/tomcat
WORK_LIB=D:/work/libs
ORACLEHOME=C:/oracle/ora81
APACHE_HOME=c:/apache/apache
ANT_HOME=D:/Downlo~1/jakarta/ant

Kapil
-----Original Message-----
From: Nimesh Shah [mailto:Nimesh.Shah@xoriant.com]
Sent: Wednesday, July 18, 2001 10:43 AM
To: Ant-User (E-mail)
Subject: Variable access


Environment:

Current directory: d:\work
Windows 98
Ant 1.3
x.properties:
JAVA_HOME="C:/jdk1.3.0_02"
TOMCAT_HOME="C:/tomcat"
WORK_LIB="D:/work/libs"
ORACLEHOME="C:/oracle/ora81"
APACHE_HOME="c:/apache/apache"
ANT_HOME="D:/Downlo~1/jakarta/ant"

Buildfile has:

		<property file="x.properties" />

		<copy todir="${APACHE_HOME}/htdocs" overwrite="yes">
			<fileset dir="${src.home}/Webfiles/html"
includes="Help.html" />
		</copy>

Gives following:

D:\work\build.xml:66: Failed to copy D:\work\x\source\Webfiles\html\Hel
p.html to D:\work\"c:\apache\apache"\htdocs\Help.html due to
D:\work\"c:\apache\
apache"\htdocs\Help.html (The system cannot find the path specified)
--- Nested Exception ---
java.io.FileNotFoundException: D:\work\"c:\apache\apache"\htdocs\Help.html
(The
system cannot find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:62)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:132)
        at org.apache.tools.ant.Project.copyFile(Project.java:774)
        at org.apache.tools.ant.Project.copyFile(Project.java:690)
        at
org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:335)
        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:221)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)

I wouldn't expect D:\work and double quotes to come in my way in todir part!
How do I fix this?

Reg,
-Nimesh.

Mime
View raw message