You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Yiling Lu <yi...@gmail.com> on 2005/01/03 20:52:04 UTC

xmlproperty task problem

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