Hi Antonie,
that is stange. I cannot reproduce this with
simple build files.

for example:

<project>
 <property name="jdomjar" value="../rats/jdom.jar"/>
 <script language="beanshell">
   import java.io.File;
   import org.apache.tools.ant.util.FileUtils;
   fu = FileUtils.newFileUtils();
   System.out.println("Basedir is " + basedir);
   System.out.println(fu.resolveFile(new File(basedir),  jdomjar));
 </script>
</project>

called with
ant -D"jdom.jar=/data3/gump/jdom/build/jdom.jar"
works ok.

Peter

Antoine Lévy-Lambert wrote:

Hi,

I have been advising the slide developers (particularly Unico Hommes) about changing their build files to make them work better with gump.

I wonder whether there is a *problem* with *FileUtils.resolveFile* deciding that

/data3/gump/jdom/build/jdom.jar

is not an absolute path

and should be resolved as :
/data3/gump/jakarta-slide/data3/gump/jdom/build/jdom.jar

when used here :

called basically like ant -D"jdom.jar=/data3/gump/jdom/build/jdom.jar"

called from


(simplification of build.xml)



<project name="Slide" default="all" basedir=".">

   <property name="lib.dir" value="./lib"/>

   <property name="jdom.jar" value="${lib.dir}/jdom-20040226-.jar"/>

   <target name="all" >

       <ant dir="testsuite"/>

   </target>

</project>


(simplification of testsuite/build.xml)

<project default="all">

<property name="lib" value="${basedir}/lib" />
<property name="jdom.jar" value="${basedir}/../lib/jdom-20040226-.jar"/>


 <!-- =============================================================== -->
 <target name="all">
   <antcall target="make" />
 </target>


<!-- =============================================================== -->
<target name="make" description="builds the tprocessor">
<copy todir="${lib}" file="${jdom.jar}" overwrite="yes" />
</target>
</project>





Footnotes
[1] http://lsd.student.utwente.nl/gump/jakarta-slide/jakarta-slide.html
[2] http://cvs.apache.org/viewcvs.cgi/jakarta-slide/build.xml?view=markup
[3] http://cvs.apache.org/viewcvs.cgi/jakarta-slide/testsuite/build.xml?view=markup




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to