ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yiling Lu <yili...@gmail.com>
Subject xmlproperty task problem
Date Mon, 03 Jan 2005 19:52:04 GMT
I am trying to use this xml file to configure my java dev script:

<?xml version="1.0"?>
<root>
       <project name = "my project">
               <source location = "src"/>
               <build value="build" >
               <classes id = "build.out" location="${build.value}/classes"/>
               <reference refid = "build.out"/>
       </build>
               <compiler id = "javac1.4" value = "C:\j2sdk1.4.2_05\bin\javac" />
               <run-time>
                       <library>
                       </library>
               </run-time>
       </project>
</root>

Ant script I am using:
......

   <target name = "init">
       <dirname file="${ant.file}" property="this.dir"/>
       <xmlproperty file = "${this.dir}/config/property.xml"
                                keeproot="false" semanticattributes="true"/>
       </target>
       <!-- - - - - - - - - - - - - - - - - -
         target: depends
        - - - - - - - - - - - - - - - - - -->
   <target name="compile" depends = "init">
       <path id = "source">
               <fileset dir = "${project.source}">
               </fileset>
       </path>
       <javac executable="${javac1.4}"
                  srcdir="${source}"
                  destdir="${build.out}">
       </javac>
   </target>

...

The problem is I got this error while trying to run the compile target:

C:\NewEclipse\eclipse\workspace\BenchMarkBuild\build.xml:48: destination directo
ry "C:\NewEclipse\eclipse\workspace\BenchMarkBuild\${build.out}" does not exist
or is not a directory

Please help, many thanks !

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message