Not reading from jar when unzipped it works...

2008-07-09 Thread Aravind_RP

hi
Am using a 3rd party jar in my ant script for xml manipulation.the jar file
i placed in a folder in my workspace.
it is working if i unzip my jar and keep it but it is not working if i keep
the jar as such. my code is as below

  
 
 


it says the class com.oopsconsultancy.xmltask.ant.XmlTask is not found.
please help urgent
-- 
View this message in context: 
http://www.nabble.com/Not-reading-from-jar-when-unzipped-it-works...-tp18355630p18355630.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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



Re: substring

2008-07-09 Thread Frank Harnack

Hello Anthony,

the StringUtils task from antelope should help you.

http://antelope.tigris.org/docs/manual/bk03ch13.html

Regards

Frank

Quoting Anthony Muller <[EMAIL PROTECTED]>:


Hello,

Is it possible to do a substring operation with Ant?

Cheers,
Anthony

-
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]



RE: substring

2008-07-09 Thread Shawn Castrianni
Yes, but not with standard ANT. You have to use the stringutils plugin from 
antelope with docs here:  
http://antelope.tigris.org/nonav/docs/manual/bk03ch13.html


---
Shawn Castrianni

-Original Message-
From: Anthony Muller [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2008 9:51 PM
To: Ant Users List
Subject: substring

Hello,

Is it possible to do a substring operation with Ant?

Cheers,
Anthony

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

--
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

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



Re: Not reading from jar when unzipped it works...

2008-07-09 Thread Olivier Gies

Hi,

You should specify "includes" value relatively to the "dir" attribute of 
the , i.e.:






Or also:





BR,
Olivier

*Olivier Gies*

*Delivery Manager
Customs & Tax Software Engineering Center
Bull, Architect of an Open World ^TM
Phone: +86 (10) 65978001 - Ext 555 *

*www.bull.com *

*This e-mail contains material that is confidential for the sole use of
the intended recipient. Any review, reliance or distribution by others
or forwarding without express permission is strictly prohibited. If you
are not the intended recipient, please contact the sender and delete all
copies.*



 Original Message  
Subject: Not reading from jar when unzipped it works...
From: Aravind_RP <[EMAIL PROTECTED]>
To: user@ant.apache.org
Date: 09/07/2008 15:03


hi
Am using a 3rd party jar in my ant script for xml manipulation.the jar file
i placed in a folder in my workspace.
it is working if i unzip my jar and keep it but it is not working if i keep
the jar as such. my code is as below

  
 
 

classpathref="lib.path" />

it says the class com.oopsconsultancy.xmltask.ant.XmlTask is not found.
please help urgent


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



How to echo the classpathref?

2008-07-09 Thread Hans Schwaebli
For debugging purpose I want to echo the actual classpathref. But it does not 
work by using something like this:

    
    
    
    
    
    
    
        ${all.you.can.need.class.path}
    

It prints nothing although there are jars in this dir.

Any idea how to echo it?



  

RE: How to echo the classpathref?

2008-07-09 Thread Rebhan, Gilbert
 


-Original Message-
From: Hans Schwaebli [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2008 9:43 AM
To: Ant Users List
Subject: How to echo the classpathref?

/*
For debugging purpose I want to echo the actual classpathref. But it does not 
work by using something like this:

    
    
    
    
    
    
    
        ${all.you.can.need.class.path}
    

It prints nothing although there are jars in this dir.

Any idea how to echo it?
*/


${toString:all.you.can.need.class.path}

the ${toString: ...} has all files in a comma separated list


Regards, Gilbert

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



RE: How to echo the classpathref?

2008-07-09 Thread Daniel Gröndal
Hi!

I usually use a macro such as:






   --- echoing fileset @{filesetref} ---
[EMAIL PROTECTED]



And then:





This gives me the opportunity to convert the path separator and such.

//daniel

-Original Message-
From: Hans Schwaebli [mailto:[EMAIL PROTECTED] 
Sent: den 9 juli 2008 09:43
To: Ant Users List
Subject: How to echo the classpathref?

For debugging purpose I want to echo the actual classpathref. But it does not 
work by using something like this:

    
    
    
    
    
    
    
        ${all.you.can.need.class.path}
    

It prints nothing although there are jars in this dir.

Any idea how to echo it?



  

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



overwriting property specified in different files.

2008-07-09 Thread wizshah

I have two following lines added to my build.xml.


1. 

2. 

It can be seen that I have two config.properties being loaded. Thats runs
fine. All properties are loaded. But here the problem is that if I have the
same property in the second file it does not overwrite the old one. 
for instance I have a temp variable set like temp=temp in the first config
i.e. config/config.properties

where as I want to over write it in the second config i.e.
${env.projectname}/config.properties like temp=xyz

But ant does not overwrite it. Can any one help me out how I can achieve
this?

-- 
View this message in context: 
http://www.nabble.com/overwriting-property-specified-in-different-files.-tp18358563p18358563.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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



Re: overwriting property specified in different files.

2008-07-09 Thread André Pilz

Hello,

that is standard behaviour for ant. The first property definition wins. 
A simple solution for this example is to load the second property file 
first.


Also see the  Task in ant-contrib, but I never needed it.

Cheers,
Andre

wizshah schrieb:

I have two following lines added to my build.xml.


1. 

2. 

It can be seen that I have two config.properties being loaded. Thats runs
fine. All properties are loaded. But here the problem is that if I have the
same property in the second file it does not overwrite the old one. 
for instance I have a temp variable set like temp=temp in the first config

i.e. config/config.properties

where as I want to over write it in the second config i.e.
${env.projectname}/config.properties like temp=xyz

But ant does not overwrite it. Can any one help me out how I can achieve
this?



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



RE: substring

2008-07-09 Thread Anthony Muller
Thanks for the tip!

-Original Message-
From: Garrett Smith [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2008 8:22 AM
To: Ant Users List
Subject: Re: substring

On Tue, Jul 8, 2008 at 12:51 PM, Anthony Muller <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> Is it possible to do a substring operation with Ant?
>
Not exactly.

But it is possible to do a string/token replacement -- not exactly
what you asked, but it can get the job done. This is done using a
FilterChain, http://ant.apache.org/manual/CoreTypes/filterchain.html

I'm using this feature to replace certain strings in my files with the
empty string (removal). In the example below, I replace "from" with
"to"
from: "APE.namespace("APE.dom");"
to:""


http://dhtmlkitchen.com/ape/build.xml


  

  
  

  


Garrett

> Cheers,
> Anthony

-
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]



[ANN] Apache Ant 1.7.1 Released

2008-07-09 Thread Stefan Bodewig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The Apache Ant Team is proud to announce that version 1.7.1 has been
released and is available as source[1] and binary[2] archives now.

Ant 1.7.1 is mostly a bug fix release which addresses numerous issues
found in Ant 1.7.0 released in December 2006.

Several smaller optimizations should lead to an improved performance
when compared to Ant 1.7.0.

In addition Java6 support has been extended and JavaFX is now
supported by the 

Changing port number of a server(selenium-server.jar) through ant?

2008-07-09 Thread rahulrocks

I have changed the port number of selenium server in command line like this
java -jar selenium-server.jar -port 4445

How to change the port number of a server(selenium-server.jar) through ant
script?



  

 

Please help.
-- 
View this message in context: 
http://www.nabble.com/Changing-port-number-of-a-server%28selenium-server.jar%29-through-ant--tp18359971p18359971.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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



Re: Changing port number of a server(selenium-server.jar) through ant?

2008-07-09 Thread Andy Stevens
2008/7/9 rahulrocks <[EMAIL PROTECTED]>:
>
> I have changed the port number of selenium server in command line like this
> java -jar selenium-server.jar -port 4445
>
> How to change the port number of a server(selenium-server.jar) through ant
> script?
>
> 
>
>  
>
> 
>
> Please help.

I've not used Selenium myself, but based on your java command, have
you tried simply adding a second arg element
  
?


Andy.
-- 
http://pseudoq.sourceforge.net/  Open source Sudoku application

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



Re: overwriting property specified in different files.

2008-07-09 Thread wizshah

Yes that makes sense.

The problem would then be that if the property is empty in the first file
the second would not get its thing in the zone. 

All that said I think I can workout something that doesn't allow empty
fields to be written at all.

And thanks for the clarification.

Regards,
-- wiz



André Pilz wrote:
> 
> Hello,
> 
> that is standard behaviour for ant. The first property definition wins. 
> A simple solution for this example is to load the second property file 
> first.
> 
> Also see the  Task in ant-contrib, but I never needed it.
> 
> Cheers,
> Andre
> 
> wizshah schrieb:
>> I have two following lines added to my build.xml.
>> 
>>  
>> 1. 
>>  
>> 2. > file="${env.DEVHOME}/usr/home/${env.projectname}/config.properties"/>
>> 
>> It can be seen that I have two config.properties being loaded. Thats runs
>> fine. All properties are loaded. But here the problem is that if I have
>> the
>> same property in the second file it does not overwrite the old one. 
>> for instance I have a temp variable set like temp=temp in the first
>> config
>> i.e. config/config.properties
>> 
>> where as I want to over write it in the second config i.e.
>> ${env.projectname}/config.properties like temp=xyz
>> 
>> But ant does not overwrite it. Can any one help me out how I can achieve
>> this?
>> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/overwriting-property-specified-in-different-files.-tp18358563p18363280.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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



Re: overwriting property specified in different files.

2008-07-09 Thread Tom Drynda
André Pilz <[EMAIL PROTECTED]> wrote:
> ...
> that is standard behaviour for ant. The first property definition wins. 
> A simple solution for this example is to load the second property file 
> first.
> ...

That's exactly how we do it.

We have a default configuration held in a properties file.

Users (including the Test/UAT/CruiseControl/Staging/Production/etc users) each 
have a properties file which contains a subset of the default configuration - 
i.e. just the parts they need to change in order to develop/test/debug on their 
own systems/workstations/sand-boxes.

When Ant is run, first the User's properties file is loaded. Next, the default 
properties file is loaded.

This has the following advantages (in no particular order):
* User?s properties are the only ones that need to be customised for a 
particular user?s instance.
* Minimal configuation for a new user
* New properties added during development can be moved to default 
properties once they have been tested. Default properties are then propagated 
out without each user having to change their own properties file every time 
something changes.

The bottom line is that a user doesn't have to make sure that their properties 
file contains a full set of properties all of the time. If a new property is 
added during development, once it is propagated in to the default properties 
file and checked in to the repository (along with the associated code, one 
assumes) it is available for everyone after the next update from the repository.

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



Re: How to echo the classpathref?

2008-07-09 Thread Gilbert Rebhan

Daniel Gröndal schrieb:

Hi!

I usually use a macro such as:






   --- echoing fileset @{filesetref} ---
[EMAIL PROTECTED]



And then:





This gives me the opportunity to convert the path separator and such.


if it's only for a simple echoing - similar to those
System.out ... statements, lowlevel debugging, i would use
the ${toString:...} stuff, otherwards if specific delimiter needed
i would use a macrodef/scriptdef with pathconvert as you suggested.

btw. the ant editor of eclipse (using 3.2.2 on Windows) gives a popup 
window with the files included when using ${toString:...] and mouse

over. Same behaviour on similar attributes f.e. 

Re: Continu exec task, while leaving ant

2008-07-09 Thread jantje

Thanks.

But I have problems installing ant-contrib, from the website:
  grab the ant-contrib module from CVS

There is no CVS, when clicking on it. Then I have found
"ant-contrib-0.3.jar" this somewhere on the internet. I have placed this in
/usr/local/apache-ant/lib/

And have added this to build.xml:
  

So, no trying to use the forget task:
  

  


  
   
  

But got the error:
  /home/afstudeerwerk/project/build.xml:225: Problem: failed to create
task or type For
  Cause: The name is undefined.
  Action: Check the spelling.
  Action: Check that any custom tasks/types have been declared.
  Action: Check that any / declarations have taken
place.


It is hard to install this. Can someone help? Thanks..










Gilbert Rebhan wrote:
> 
> jantje schrieb:
>>> Hi there, is it possible to start (in ant) something in a shell and let
>>> this
>>> running, while stopping ant. f.i:
> 
> with antcontrib  ... you may kick off
> a new process, see =
> 
> http://ant-contrib.sourceforge.net/tasks/tasks/forget.html
> 
> 
> Regards, Gilbert
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Continu-exec-task%2C-while-leaving-ant-tp18315876p18371932.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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



How can I list what files are being compiled?

2008-07-09 Thread dave.alvarado
Hi,

What can I do, either in my build file or using a command line argument, to 
list what .java files ant is compiling?

Thanks, - Dave

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



Re: How can I list what files are being compiled?

2008-07-09 Thread Scot P. Floess

Use the listfiles attribute for the javac task:



On Wed, 9 Jul 2008, [EMAIL PROTECTED] wrote:


Hi,

What can I do, either in my build file or using a command line argument, to 
list what .java files ant is compiling?

Thanks, - Dave

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




Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros  http://sourceforge.net/projects/keros

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



How to have Dynamic Propert in ant

2008-07-09 Thread sukanya

Hi,

Here is the problem I am now facing:







 ${TSTAMP}

ant.version:  '${ant.version}'
ant.home:  '${ant.home}'
java.version:  '${java.version}'
 ${TSTAMP}



Here the time values are added to a file.
Where the file has the same time value twice. But i need to have different
time values with a single  element and property. How property values
can be changed dynamically?

Appreciate your suggestion to solve this problem.

Thanks,
Sukanya

-- 
View this message in context: 
http://www.nabble.com/How-to-have-Dynamic-Propert-in-ant-tp18376782p18376782.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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



RE: Continu exec task, while leaving ant

2008-07-09 Thread Rebhan, Gilbert
 


-Original Message-
From: jantje [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2008 12:06 AM
To: user@ant.apache.org
Subject: Re: Continu exec task, while leaving ant

/*
Thanks.

But I have problems installing ant-contrib, from the website:
  grab the ant-contrib module from CVS

There is no CVS, when clicking on it. Then I have found
"ant-contrib-0.3.jar" this somewhere on the internet. I have placed this
in
/usr/local/apache-ant/lib/

[ ... ]

*/

Gotcha :-)
Wrong version, 0.3 is rather old, but still mentioned on the ant contrib
site.

/*
Copyright (c) 2002-2003 Ant-Contrib Project. All rights Reserved.
*/

no comment ;-)


Grab version 1.0b2 or 1.0b3 from [1] and use the antlib.xml, like
that =

when antcontrib.jar in %ANT_HOME%/lib




or located elsewhere



  


[1] = http://sourceforge.net/project/showfiles.php?group_id=36177


Regards, Gilbert



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