ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanaga, Pramod R" <Pramod.San...@ca.com>
Subject problem using ant custom task with cron
Date Tue, 17 Aug 2004 15:40:26 GMT
Hi,

I wrote a small custom ant task to read a properties file and load all the property values
in the file into a single property(pack.list). I am then using that property in a for each
loop to build the components. I copied the .jar file to /usr/local/ant/lib. 

<---------------------------------------------------------------------------------------------------------
<taskdef name="CustomPropertySelector" classname=".CustomPropertySelector" classpath="CustomPropertySelector.jar"/>

<CustomPropertySelector propertyName="pack.list" delimiter="," propertyfile="gc3comps.properties"
/>

<foreach list="${pack.list}" delimiter="," target="build" param="comp.id" />
---------------------------------------------------------------------------------------------------------→

This ant file is running fine when I run it from the command prompt in linux. But, when I
run it using crontab, it exits with the following error.  I have set all the java_home, ant_home
etc. variables in the crontab file using name=value pairs.Could anybody suggest what is going
wrong here?



<---------------------------------------------------------------------------------------------
Buildfile: /home/grid/gc3/comps/build.xml

init:
     [echo] ${pack.list}

gcclean:

clean:

BUILD FAILED
/home/grid/gc3/comps/build.xml:65: Following error occured while executing this line
/home/grid/gc3/comps/build.xml:70: Property '${pack.list}' is not defined.

Total time: 0 seconds
-------------------------------------------------------------------------------------------→


Thanks & Regards,
Pramod.



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


Mime
View raw message