ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <rambiusparkisan...@yahoo.com>
Subject RE: Help with property not being set
Date Tue, 15 Jun 2004 13:42:00 GMT
The you can do one of this:
1) define jalopy.ant.dir outside init target
2) place <taskdef name="jalopy" ...> in your init
target

--- "Mikael Petterson (KI/EAB)"
<mikael.petterson@ericsson.com> wrote:
> Hi,
> 
> I cannot see a target called jalope/jalopy. It is a
> taskdef. But do I have to specify depends for a
> taskdef too?
> 
> BR
> 
> //Mikael
> 
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de
> [mailto:Jan.Materne@rzf.fin-nrw.de]
> Sent: den 15 juni 2004 15:03
> To: user@ant.apache.org
> Subject: RE: Help with property not being set
> 
> 
> Target jalope doesnt depend on init.
> 
> Jan
> 
> > -----Original Message-----
> > From: Mikael Petterson (KI/EAB)
> [mailto:mikael.petterson@ericsson.com]
> > Sent: Tuesday, June 15, 2004 2:54 PM
> > To: 'user@ant.apache.org'
> > Subject: Help with property not being set
> > 
> > 
> > Hi,
> > 
> > I cannot figure out why a certain property is not
> being set.
> > 
> > Any hints!
> > 
> > //Mikael 
> > 
> > 
> > /home/eraonel/pub/apache-ant-1.5.4/bin/ant -v
> -buildfile 
> > /vobs/rbs/sw/rbssw1/boam_subsys/src/boam.xml all
> > Apache Ant version 1.5.4 compiled on August 12
> 2003
> > Buildfile:
> /vobs/rbs/sw/rbssw1/boam_subsys/src/boam.xml
> > Detected Java version: 1.3 in:
> /vobs/cello/cade_A_tools_jdk/jre
> > Detected OS: SunOS
> > parsing buildfile 
> > /vobs/rbs/sw/rbssw1/boam_subsys/src/boam.xml with
> URI = 
> > file:/vobs/rbs/sw/rbssw1/boam_subsys/src/boam.xml
> > Project base dir set to:
> /vobs/rbs/sw/rbssw1/boam_subsys/src
> > Property ${jalopy.ant.dir} has not been set
> > 
> > BUILD FAILED
> >
>
/vobs/rbs/sw/rbssw1/boam_subsys/src/${jalopy.ant.dir}/lib
> not found.
> >         at 
> >
>
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner
> > (AbstractFileSet.java:369)
> >         at
> org.apache.tools.ant.types.Path.list(Path.java:332)
> >         at
> org.apache.tools.ant.types.Path.list(Path.java:320)
> >         at
>
org.apache.tools.ant.types.Path.addExisting(Path.java:260)
> >         at 
> >
>
org.apache.tools.ant.types.Path.concatSystemClasspath(Path.java:551)
> >         at 
> >
>
org.apache.tools.ant.AntClassLoader.<init>(AntClassLoader.java:286)
> >         at 
> >
>
org.apache.tools.ant.AntClassLoader.<init>(AntClassLoader.java:317)
> >         at 
> >
>
org.apache.tools.ant.AntClassLoader.<init>(AntClassLoader.java:340)
> >         at 
> >
>
org.apache.tools.ant.taskdefs.Definer.createLoader(Definer.java:275)
> >         at 
> >
>
org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:151)
> >         at 
> >
>
org.apache.tools.ant.helper.ProjectHelperImpl$TaskHandler.fini
> > shed(ProjectHelperImpl.java:821)
> >         at 
> >
>
org.apache.tools.ant.helper.ProjectHelperImpl$AbstractHandler.
> > endElement(ProjectHelperImpl.java:300)
> >         at 
> >
>
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
> >         at 
> >
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndE
> > lement(Unknown Source)
> >         at 
> >
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment
> > ContentDispatcher.dispatch(Unknown Source)
> >         at 
> >
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu
> > ment(Unknown Source)
> >         at 
> >
>
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> >         at 
> >
>
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> Source)
> >         at
> org.apache.xerces.parsers.XMLParser.parse(Unknown
> Source)
> >         
> > My build.xml
> > ============
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!-- Written to assume that classpath is rooted in
> the 
> > current directory.         -->
> > <!-- So this should be OK if you make this script
> in the root 
> > of a filesystem.    -->
> > <!-- If not, you may prefer to adjust the basedir,
> or move 
> > some directories around-->
> > <!-- The idea is that both Ant and NetBeans have
> to know what 
> > the package root is -->
> > <!-- for the classes in your application.         
>            
> >                     -->
> > <!-- History:                                     
>            
> >                     -->
> > <!-- 2004-06-08 eraonel exclude aue, bros and
> upfwk for 
> > javac.                    -->
> > <!-- 2004-06-15 eraonel ant task for jalopy.			
> > 		  -->
> > <!-- 2004-06-15 eraonel removing unesseceray
> tasks, commands 
> > and comments.        -->
> > 
> > <project basedir="." default="all" name="boam">
> > 	
> >   <!-- 
> >
>
==============================================================
> > ====== -->
> >   <!-- initialize properties                      
>            
> >               -->
> >   <!-- 
> >
>
==============================================================
> > ====== -->
> >      <target name="init">
> > 
> >        	<!-- boam directories -->
> >         <property name="classes.dir"
> value="../classes"/>
> >         <property name="jar.dir"
> value="../lib.java"/>
> >         <property name="simcello.dir" 
> > value="/vobs/rbs/sw/rbssw1/simcello/mp_lm"/>
> >         <property name="bros_dm.dir" 
> > value="/vobs/rbs/sw/rbssw1/boam_dm/bros_dm"/>
> > 
> >        	<!-- jalopy directories -->
> > 	<property name="jalopy.ant.dir" 
> >
>
value="/vobs/rbs/sw/rbssw_tools/boam_tools/jalopy-ant"/>
> > 	<property name="jalopy.dir" 
> >
> value="/vobs/rbs/sw/rbssw_tools/boam_tools/jalopy"/>
> > 
> >         <!-- jar files -->
> >         <property name="boam.jar"
> value="${ant.project.name}.jar"/>
> > 	
> > 	<!-- cello Libraries -->
> >         <property name="cello.lib.dir" 
> > value="/vobs/cello/struct/cello_dp/lib/jvm" />
> >         <property name="cello.java.libs" 
> > value="${cello.lib.dir}/cma.jar:
> >        
>
${cello.lib.dir}/foundation.jar:${cello.lib.dir}/oms.jar:
> 
=== message truncated ===



		
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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


Mime
View raw message