ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: UpperCase or similar task
Date Tue, 25 May 2004 10:27:08 GMT
You must  not set the ANT_CLASSPATH
or the CLASSPATH
before using ant.
The ant bat or sh script will set these correctly base
on ANT_HOME.
Peter

vinod.nayak@iflexsolutions.com wrote:

>I have bsf.jar in $ANT_HOME/lib
>
>-----Original Message-----
>From: Ivan Ivanov [mailto:rambiusparkisanius@yahoo.com]
>Sent: Tuesday, May 25, 2004 3:50 PM
>To: Ant Users List
>Subject: RE: UpperCase or similar task
>
>
>Hi,
>
>Do you have BSF[1] in $ANT_HOME/lib (or in
>$HOME/.ant/lib)? According to [2] bsf.jar is needed by
>scripts tasks.
>
>HTH Ivan
>
>[1]http://jakarta.apache.org/bsf/
>[2]http://ant.apache.org/manual/install.html#librarydependencies
>
>--- vinod.nayak@iflexsolutions.com wrote:
>  
>
>>Hi Jan,
>>
>>Could you please help me in this..
>>
>><taskdef name="scriptdef"
>>
>>    
>>
>classname="org.apache.tools.ant.taskdefs.optional.script.ScriptDef"
>  
>
>>/>
>>
>><scriptdef name="SplitBeanInfo"
>>language="javascript">
>>  <attribute name="bean-set"/>
>>   
>>
>>    
>>
>project.setProperty("bean-name",attributes.get("bean-set"));
>  
>
>></scriptdef>
>>
>><target name="EntityBeans">
>>	<for list="${e-beans}" delimiter=","
>>param="ebean-set">
>>	<sequential>
>>		<echo message="@{ebean-set}"/>
>>		<SplitBeanInfo bean-set="@{ebean-set}"/>
>>	</sequential>
>>	</for>
>></target>
>>
>>after calling the 'EntityBeans' target i am getting
>>this error.
>>
>>EntityBeans:
>>     [echo] Rco
>>
>>BUILD FAILED
>>java.lang.NoSuchMethodError
>>
>>This is my ant classpath.
>>
>>    
>>
>ANT_CLASSPATH=$ANT_HOME/lib/ant.jar:$ANT_HOME/lib/ant-launcher.jar:$ANT_HOME/lib/xercesImpl.jar:$ANT_HOME/lib/xml-apis.jar:$ANT_HOME/lib/js.jar:$ANT_HOME/lib/bsf.jar:$ANT_HOME/lib/ant-contrib.jar:$ANT_HOME/lib/ant-apache-bsf.jar:$JAVA_HOME/lib/tools.jar
>  
>
>>Thanks in advance,
>>Vinod.
>>
>>-----Original Message-----
>>From: Jan.Materne@rzf.fin-nrw.de
>>[mailto:Jan.Materne@rzf.fin-nrw.de]
>>Sent: Tuesday, May 25, 2004 2:40 PM
>>To: user@ant.apache.org
>>Subject: RE: UpperCase or similar task
>>
>>
>>There is no task.
>>
>>But you can use the java.lang.String.toUpperCase()
>>method:
>>
>>    <scriptdef name="uc" language="javascript">
>>        <attribute name="property"/>
>>        <attribute name="value"/>
>>       
>>project.setNewProperty(attributes.get("property"),
>>attributes.get("value").toUpperCase());
>>    </scriptdef>
>>
>>    <uc property="one" value="one"/>
>>    <echo>one = ${one}</echo>
>>
>>    <uc property="one" value="another"/>
>>    <echo>one = ${one}</echo>
>>
>>    <uc property="two" value="Two"/>
>>    <echo>two = ${two}</echo>
>>
>>[echo] one = ONE
>>[echo] one = ONE   <----- properties are immutable
>>(therefore use of
>>set_New_Property() )
>>[echo] two = TWO
>>
>>
>>Jan
>>
>>    
>>
>>>-----Original Message-----
>>>From: skalsky@oksystem.cz
>>>      
>>>
>>[mailto:skalsky@oksystem.cz]
>>    
>>
>>>Sent: Tuesday, May 25, 2004 10:53 AM
>>>To: user@ant.apache.org
>>>Subject: UpperCase or similar task
>>>
>>>
>>>Hello there,
>>>	I have a problem with strings in ANT. Is there
>>>      
>>>
>>any task 
>>    
>>
>>>to make upperCase (or lowerCase) of string in ANT
>>>      
>>>
>>? I can't 
>>    
>>
>>>find anything in the apache.org :(
>>>
>>>	Thanx 4 your help.
>>>		Milan
>>>
>>>
>>>
>>>      
>>>
>---------------------------------------------------------------------
>  
>
>>>To unsubscribe, e-mail:
>>>      
>>>
>>user-unsubscribe@ant.apache.org
>>    
>>
>>>For additional commands, e-mail:
>>>      
>>>
>>user-help@ant.apache.org
>>    
>>
>>    
>>
>---------------------------------------------------------------------
>  
>
>>To unsubscribe, e-mail:
>>user-unsubscribe@ant.apache.org
>>For additional commands, e-mail:
>>user-help@ant.apache.org
>>
>>    
>>
>
>
>
>	
>		
>__________________________________
>Do you Yahoo!?
>Friends.  Fun.  Try the all-new Yahoo! Messenger.
>http://messenger.yahoo.com/ 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>  
>


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


Mime
View raw message