Hi Max,

>From what I've seen, Ant requires the file name in <include ..> to be
relative to srcdir, not an absolute path. Hence you need to convert the
value of "buffer" to be relative to srcdir.

Hopefully a jde-ant user has already done this (or worked out how to get Ant
to use absolute paths) and can provide the solution here.

Regards,

Ross

<apologies for unstoppable signature verbiage>
 
> -----Original Message-----
> From: Max Gravitt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 23 August 2001 00:43
> To: [EMAIL PROTECTED]
> Subject: using "-Dbuffer=" with jde-ant
> 
> 
> Hi all,
> 
> My problem has to do with how jde-ant is interacting with Ant 
> via the "buffer" system property.  This question may be 
> better directed to an Ant community, but I've opted to start 
> here first in hopes other JDE users use jde-ant/Ant/-Dbuffer 
> the same way.
> 
> I'm trying to use Ant to compile only one file at a time 
> using the "buffer" system property.  Ant isn't compiling any 
> file, even though I set the "include" to the buffer system property.
> 
> Below are my build.xml target and compilation buffers.  Any ideas?
> As I only receive the digest, please be sure to include my 
> email address in your reply.
> 
> thanks in advance,
> Max
> 
> Here is my target (see that I attempt to only compile the 
> file specified by using "<include name="${buffer}"/>):
> 
>  <target name="compile1" depends="init">
>     <!-- Compile the java code from ${src} and place binaries 
> in ${build}-->
>     <echo message="${buffer}"/>
>     <javac srcdir="${src}" 
>       destdir="${build}/WEB-INF/classes"
>       debug="on">
>       <include name="${buffer}"/>
>       <classpath>
>           <pathelement location="${src}/WEB-INF/classes"/>
>           <fileset dir="${src}/WEB-INF/lib">
>                   <include name="**/*.jar"/> 
>           </fileset>
>       </classpath>
>     </javac>
>   </target>
> 
> Here is the *compilation* buffer:
> 
> cd c:/itsv3/src/WEB-INF/classes/com/sas/itsv/ui/
> ant.bat 
> -Dbuffer=c:/itsv3/src/WEB-INF/classes/com/sas/itsv/ui/GetPrope
> rties.java -emacs  -find build.xml compile1 
> Searching for build.xml ...
> Buildfile: c:\itsv3\build.xml
> 
> init:
> 
> compile1:
> c:/itsv3/src/WEB-INF/classes/com/sas/itsv/ui/GetProperties.java
> 
> BUILD SUCCESSFUL
> 
> Total time: 1 second
> 


IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee.  It is confidential and may contain legally privileged
information.  No confidentiality or privilege is waived or lost by any
mistaken transmission to you.  If you receive this e-mail in error, please
immediately delete it from your system and notify the sender.  You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient.  The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.  

Reply via email to