Re: Warning: selected war files include a WEB-INF/web.xml whichwill be ignored (please use webxml attribute to war task)

2007-04-27 Thread Denis Bessmertnyj

Hi Frank.

It doesn't work.

- Original Message - 
From: "Frank Harnack" <[EMAIL PROTECTED]>

To: 
Sent: Friday, April 27, 2007 9:54 AM
Subject: Re: Warning: selected war files include a WEB-INF/web.xml whichwill 
be ignored (please use webxml attribute to war task)



Hello Denis,



should work.

Regards

Frank



Quoting Denis Bessmertnyj <[EMAIL PROTECTED]>:


It's Since Ant 1.7, but I use Ant 1.6.

-
Denis
- Original Message - From: "Martin Gainty" <[EMAIL PROTECTED]>
To: "Ant Users List" 
Sent: Thursday, April 26, 2007 7:30 PM
Subject: Re: Warning: selected war files include a WEB-INF/web.xml
which will be ignored (please use webxml attribute to war task)



attribute
needxmlfile="true"
(to require web.xml for war task)

HTH
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please 
notify

the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - From: "Denis Bessmertnyj" <[EMAIL PROTECTED]>
To: "Ant Users List" 
Sent: Thursday, April 26, 2007 12:17 PM
Subject: Warning: selected war files include a WEB-INF/web.xml   which 
will be ignored (please use webxml attribute to war task)




Hi,

how I may escape this warning message in War task
[war] Warning: selected war files include a WEB-INF/web.xml   which 
will be ignored (please use webxml attribute to war task)


Here my war task


As you see I have webxml attribute and it refs correctly.
But in web application files in WEB-INF directory I also have web.xml
which I want to replace by webxml="web.xml" attribute.

How I may suppress this warning message?


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




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


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



Re: Warning: selected war files include a WEB-INF/web.xml whichwill be ignored (please use webxml attribute to war task)

2007-04-27 Thread Frank Harnack

Hi Denis,

it works for me with ant 1.6.4 .

???

Regards

Frank

Quoting Denis Bessmertnyj <[EMAIL PROTECTED]>:


Hi Frank.

It doesn't work.

- Original Message - From: "Frank Harnack"   
<[EMAIL PROTECTED]>

To: 
Sent: Friday, April 27, 2007 9:54 AM
Subject: Re: Warning: selected war files include a WEB-INF/web.xml
whichwill be ignored (please use webxml attribute to war task)


Hello Denis,



should work.

Regards

Frank



Quoting Denis Bessmertnyj <[EMAIL PROTECTED]>:


It's Since Ant 1.7, but I use Ant 1.6.

-
Denis
- Original Message - From: "Martin Gainty" <[EMAIL PROTECTED]>
To: "Ant Users List" 
Sent: Thursday, April 26, 2007 7:30 PM
Subject: Re: Warning: selected war files include a WEB-INF/web.xml
which will be ignored (please use webxml attribute to war task)



attribute
needxmlfile="true"
(to require web.xml for war task)

HTH
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - From: "Denis Bessmertnyj" <[EMAIL PROTECTED]>
To: "Ant Users List" 
Sent: Thursday, April 26, 2007 12:17 PM
Subject: Warning: selected war files include a WEB-INF/web.xml 
which will be ignored (please use webxml attribute to war task)




Hi,

how I may escape this warning message in War task
   [war] Warning: selected war files include a WEB-INF/web.xml 
which will be ignored (please use webxml attribute to war task)


Here my war task


As you see I have webxml attribute and it refs correctly.
But in web application files in WEB-INF directory I also have web.xml
which I want to replace by webxml="web.xml" attribute.

How I may suppress this warning message?


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




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


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



AW: How to set the next week start date

2007-04-27 Thread Jan.Materne
For which system you need to set the date?

Jan 

>-Ursprüngliche Nachricht-
>Von: Satheesh [mailto:[EMAIL PROTECTED] 
>Gesendet: Freitag, 27. April 2007 11:51
>An: Ant Users List
>Betreff: How to set the next week start date
>
>Hi Guys, If i want to set the current date its possible in ANT 
>, even if i want a date which is some 'n' days after the 
>current date, that also is possible..
>
>I need a way to set the value of the next weeks start date and 
>last week start date using ANT.
>
>How can i achieve this///
>

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



Re: How to set the next week start date

2007-04-27 Thread Satheesh
Am using certain parameters in my Test Case. This will get replaced with the
values in the build.xml files.
Am using tokens for Current Date and Others stuffs.

- Original Message -
From: <[EMAIL PROTECTED]>
To: 
Sent: Friday, April 27, 2007 3:28 PM
Subject: AW: How to set the next week start date


For which system you need to set the date?

Jan

>-Ursprüngliche Nachricht-
>Von: Satheesh [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 27. April 2007 11:51
>An: Ant Users List
>Betreff: How to set the next week start date
>
>Hi Guys, If i want to set the current date its possible in ANT
>, even if i want a date which is some 'n' days after the
>current date, that also is possible..
>
>I need a way to set the value of the next weeks start date and
>last week start date using ANT.
>
>How can i achieve this///
>

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



Ant: URI has an authority component

2007-04-27 Thread Denis Bessmertnyj

Hi All,

Ant in Anger.

Here is my simple build.xml


   
   Hello, Hello
   


I attach the next jars
ant-1.7.0.jar;ant-launcher-1.7.0.jar;catalina-ant.jar;activation.jar;ant-javamail-1.7.0.jar;junit.jar;ant-junit-1.7.0.jar;

And I receive

BUILD FAILED
java.lang.IllegalArgumentException: URI has an authority component
   at java.io.File.(Unknown Source)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown 
Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown 
Source)

   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:165)
   at 
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
   at 
org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)

   at org.apache.tools.ant.Project.setAntLib(Project.java:313)
   at org.apache.tools.ant.Project.initProperties(Project.java:309)
   at org.apache.tools.ant.Project.init(Project.java:295)
   at org.apache.tools.ant.Main.runBuild(Main.java:663)
   at org.apache.tools.ant.Main.startAnt(Main.java:199)
   at org.apache.tools.ant.Main.start(Main.java:161)
   at org.apache.tools.ant.Main.main(Main.java:250)

Total time: 0 seconds
java.lang.IllegalArgumentException: URI has an authority component
   at java.io.File.(Unknown Source)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown 
Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown 
Source)

   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:165)
   at 
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
   at 
org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)

   at org.apache.tools.ant.Project.setAntLib(Project.java:313)
   at org.apache.tools.ant.Project.initProperties(Project.java:309)
   at org.apache.tools.ant.Project.init(Project.java:295)
   at org.apache.tools.ant.Main.runBuild(Main.java:663)
   at org.apache.tools.ant.Main.startAnt(Main.java:199)
   at org.apache.tools.ant.Main.start(Main.java:161)
   at org.apache.tools.ant.Main.main(Main.java:250)
URI has an authority component


What is wrong?

thank you 



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



Re: Ant: URI has an authority component

2007-04-27 Thread Steve Loughran

Denis Bessmertnyj wrote:

Hi All,

Ant in Anger.

Here is my simple build.xml


   
   Hello, Hello
   


I attach the next jars
ant-1.7.0.jar;ant-launcher-1.7.0.jar;catalina-ant.jar;activation.jar;ant-javamail-1.7.0.jar;junit.jar;ant-junit-1.7.0.jar; 



And I receive

BUILD FAILED
java.lang.IllegalArgumentException: URI has an authority component
   at java.io.File.(Unknown Source)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown 
Source)
   at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:165)
   at 
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
   at 
org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)

   at org.apache.tools.ant.Project.setAntLib(Project.java:313)
   at org.apache.tools.ant.Project.initProperties(Project.java:309)
   at org.apache.tools.ant.Project.init(Project.java:295)
   at org.apache.tools.ant.Main.runBuild(Main.java:663)
   at org.apache.tools.ant.Main.startAnt(Main.java:199)
   at org.apache.tools.ant.Main.start(Main.java:161)
   at org.apache.tools.ant.Main.main(Main.java:250)


What directory is the project in?

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



Re: Ant: URI has an authority component

2007-04-27 Thread Denis Bessmertnyj

Steve,

current directory. I just make a test in order to run Ant via Java


- Original Message - 
From: "Steve Loughran" <[EMAIL PROTECTED]>

To: "Ant Users List" 
Sent: Friday, April 27, 2007 1:50 PM
Subject: Re: Ant: URI has an authority component



Denis Bessmertnyj wrote:

Hi All,

Ant in Anger.

Here is my simple build.xml


   
   Hello, Hello
   


I attach the next jars
ant-1.7.0.jar;ant-launcher-1.7.0.jar;catalina-ant.jar;activation.jar;ant-javamail-1.7.0.jar;junit.jar;ant-junit-1.7.0.jar; 
And I receive


BUILD FAILED
java.lang.IllegalArgumentException: URI has an authority component
   at java.io.File.(Unknown Source)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown 
Source)
   at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:165)
   at 
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
   at 
org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)

   at org.apache.tools.ant.Project.setAntLib(Project.java:313)
   at org.apache.tools.ant.Project.initProperties(Project.java:309)
   at org.apache.tools.ant.Project.init(Project.java:295)
   at org.apache.tools.ant.Main.runBuild(Main.java:663)
   at org.apache.tools.ant.Main.startAnt(Main.java:199)
   at org.apache.tools.ant.Main.start(Main.java:161)
   at org.apache.tools.ant.Main.main(Main.java:250)


What directory is the project in?

-
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: Ant: URI has an authority component

2007-04-27 Thread Denis Bessmertnyj

Here what I do in batch file

set 
ANT_CLASSPATH=%JCLASSES_LIB_DIR%\ant-1.7.0.jar;%JCLASSES_LIB_DIR%\ant-launcher-1.7.0.jar;%JCLASSES_LIB_DIR%\xercesImpl-2.9.0.jar;%JCLASSES_LIB_DIR%\xml-apis-1.3.04.jar;%JCLASSES_LIB_DIR%\xml-resolver-1.2.jar;%JCLASSES_LIB_DIR%\xml-serializer-2.7.1.jar


call java org.apache.tools.ant.Main -classpath 
%CLASSPATH%;%ANT_CLASSPATH% -buildfile build.xml




- Original Message - 
From: "Steve Loughran" <[EMAIL PROTECTED]>

To: "Ant Users List" 
Sent: Friday, April 27, 2007 1:50 PM
Subject: Re: Ant: URI has an authority component



Denis Bessmertnyj wrote:

Hi All,

Ant in Anger.

Here is my simple build.xml


   
   Hello, Hello
   


I attach the next jars
ant-1.7.0.jar;ant-launcher-1.7.0.jar;catalina-ant.jar;activation.jar;ant-javamail-1.7.0.jar;junit.jar;ant-junit-1.7.0.jar; 
And I receive


BUILD FAILED
java.lang.IllegalArgumentException: URI has an authority component
   at java.io.File.(Unknown Source)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown 
Source)
   at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:165)
   at 
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
   at 
org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)

   at org.apache.tools.ant.Project.setAntLib(Project.java:313)
   at org.apache.tools.ant.Project.initProperties(Project.java:309)
   at org.apache.tools.ant.Project.init(Project.java:295)
   at org.apache.tools.ant.Main.runBuild(Main.java:663)
   at org.apache.tools.ant.Main.startAnt(Main.java:199)
   at org.apache.tools.ant.Main.start(Main.java:161)
   at org.apache.tools.ant.Main.main(Main.java:250)


What directory is the project in?

-
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: Ant: URI has an authority component

2007-04-27 Thread Steve Loughran

Denis Bessmertnyj wrote:

Hi All,

Ant in Anger.

Here is my simple build.xml


   
   Hello, Hello
   


I attach the next jars
ant-1.7.0.jar;ant-launcher-1.7.0.jar;catalina-ant.jar;activation.jar;ant-javamail-1.7.0.jar;junit.jar;ant-junit-1.7.0.jar; 



And I receive

BUILD FAILED
java.lang.IllegalArgumentException: URI has an authority component
   at java.io.File.(Unknown Source)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown 
Source)
   at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:165)
   at 
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
   at 
org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)

   at org.apache.tools.ant.Project.setAntLib(Project.java:313)
   at org.apache.tools.ant.Project.initProperties(Project.java:309)
   at org.apache.tools.ant.Project.init(Project.java:295)
   at org.apache.tools.ant.Main.runBuild(Main.java:663)
   at org.apache.tools.ant.Main.startAnt(Main.java:199)
   at org.apache.tools.ant.Main.start(Main.java:161)
   at org.apache.tools.ant.Main.main(Main.java:250)


private void setAntLib() {
File antlib = org.apache.tools.ant.launch.Locator.getClassSource(
Project.class);
if (antlib != null) {
setPropertyInternal(MagicNames.ANT_LIB, 
antlib.getAbsolutePath());

}
}

Ant is failing to extract the base directory of where the classes are 
running from, which implies that it cannot create a URL/URI from: 
%JCLASSES_LIB_DIR%\ant-1.7.0.jar


What is %ANT_CLASSPATH% ? And please, replies to the group, not me direct.

-steve

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



Re: Ant: URI has an authority component

2007-04-27 Thread Denis Bessmertnyj

Here is %JCLASSES_LIB_DIR% variable value (maybe it will be helpful)
\\PC03\jclasses\lib

Here is %ANT_CLASSPATH%
set 
ANT_CLASSPATH=%JCLASSES_LIB_DIR%\ant-1.7.0.jar;%JCLASSES_LIB_DIR%\ant-launcher-1.7.0.jar;%JCLASSES_LIB_DIR%\xercesImpl-2.9.0.jar;%JCLASSES_LIB_DIR%\xml-apis-1.3.04.jar;%JCLASSES_LIB_DIR%\xml-resolver-1.2.jar;%JCLASSES_LIB_DIR%\xml-serializer-2.7.1.jar



Ant is failing to extract the base directory of where the classes are 
running from, which implies that it cannot create a URL/URI from: 
%JCLASSES_LIB_DIR%\ant-1.7.0.jar


What is %ANT_CLASSPATH% ? And please, replies to the group, not me direct.

-steve

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



Ant BUG?: URI has an authority component

2007-04-27 Thread Denis Bessmertnyj

Steve,

I have had a talk with my PM and he told me that he also had this bug with 
ant.


1.7 doesn't want to work with network resources.

-
Denis

- Original Message - 
From: "Denis Bessmertnyj" <[EMAIL PROTECTED]>

To: "Ant Users List" 
Sent: Friday, April 27, 2007 2:16 PM
Subject: Re: Ant: URI has an authority component



Here is %JCLASSES_LIB_DIR% variable value (maybe it will be helpful)
\\PC03\jclasses\lib

Here is %ANT_CLASSPATH%
set 
ANT_CLASSPATH=%JCLASSES_LIB_DIR%\ant-1.7.0.jar;%JCLASSES_LIB_DIR%\ant-launcher-1.7.0.jar;%JCLASSES_LIB_DIR%\xercesImpl-2.9.0.jar;%JCLASSES_LIB_DIR%\xml-apis-1.3.04.jar;%JCLASSES_LIB_DIR%\xml-resolver-1.2.jar;%JCLASSES_LIB_DIR%\xml-serializer-2.7.1.jar



Ant is failing to extract the base directory of where the classes are 
running from, which implies that it cannot create a URL/URI from: 
%JCLASSES_LIB_DIR%\ant-1.7.0.jar


What is %ANT_CLASSPATH% ? And please, replies to the group, not me 
direct.


-steve

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




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



RE: How to set the next week start date

2007-04-27 Thread Rebhan, Gilbert
 
Hi,

quick hack  =







   






starting Date last week == ${lastweek}
starting Date next week == ${nextweek}






Buildfile: C:\WKS\eclipse_3_2_2\test\jruby_time.xml
depends:
   [script] actual date == 04.27.2007
main:
 [echo] starting Date last week == 04.23.2007
 [echo] starting Date next week == 04.30.2007
BUILD SUCCESSFUL
Total time: 2 seconds


the example uses Monday as starting point, if you want
Sunday instead you have to change the line

x=t.strftime("%w").to_i-1

to

x=t.strftime("%w").to_i

for having the date properties in other formats, you
have to alter the strftime("%m.%d.%Y") string, see

http://www.ruby.ch/ProgrammingRuby/htmlC/ref_c_time.html#strftime



Regards, Gilbert


-Original Message-
From: Satheesh [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 11:51 AM
To: Ant Users List
Subject: How to set the next week start date

Hi Guys, If i want to set the current date its possible in ANT , even if
i want a date which is some 'n' days after the current date, that also
is possible..

I need a way to set the value of the next weeks start date and last week
start date using ANT.

How can i achieve this///

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



Re: Ant: URI has an authority component

2007-04-27 Thread Steve Loughran

Denis Bessmertnyj wrote:

Here is %JCLASSES_LIB_DIR% variable value (maybe it will be helpful)
\\PC03\jclasses\lib

Here is %ANT_CLASSPATH%
set 
ANT_CLASSPATH=%JCLASSES_LIB_DIR%\ant-1.7.0.jar;%JCLASSES_LIB_DIR%\ant-launcher-1.7.0.jar;%JCLASSES_LIB_DIR%\xercesImpl-2.9.0.jar;%JCLASSES_LIB_DIR%\xml-apis-1.3.04.jar;%JCLASSES_LIB_DIR%\xml-resolver-1.2.jar;%JCLASSES_LIB_DIR%\xml-serializer-2.7.1.jar 


OK. Try doing a full printout of ECHO %ANT_CLASSPATH% to see what happens

I suspect Ant can't handle a \\name\value path URL, which is causing the 
problem, and it will go away if you use a hard coded name.


I'm going to open a bugrep ... here you go

http://issues.apache.org/bugzilla/show_bug.cgi?id=42275

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



RE: How to set the next week start date

2007-04-27 Thread Rebhan, Gilbert

to quick ;-) 

corrected =







   






starting Date last week == ${lastweek}
starting Date this week == ${thisweek}
starting Date next week == ${nextweek}





Buildfile: C:\WKS\eclipse_3_2_2\test\jruby_time.xml
depends:
   [script] actual date == 04.27.2007
main:
 [echo] starting Date last week == 04.16.2007
 [echo] starting Date this week == 04.23.2007
 [echo] starting Date next week == 04.30.2007
BUILD SUCCESSFUL
Total time: 2 seconds 


Regards, Gilbert


-Original Message-
From: Rebhan, Gilbert 
Sent: Friday, April 27, 2007 1:39 PM
To: 'Ant Users List'
Subject: RE: How to set the next week start date

 
Hi,

quick hack  =


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



Re: Ant BUG?: URI has an authority component

2007-04-27 Thread Steve Loughran

Denis Bessmertnyj wrote:

Steve,

I have had a talk with my PM and he told me that he also had this bug 
with ant.


1.7 doesn't want to work with network resources.

-
Denis


well, expect some fix in Ant1.7.1. In the meantimes, I think something 
may be doable about your batch file.


If you mount the network to a drive and mount it that way, all should work.

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



RE: How to set the next week start date

2007-04-27 Thread cknell
On what day (for your purposes) does a week start?
Will you take holidays into account?
If so, what country's holidays will figure in?
Are there any local holidays that should be taken into account?

-- 
Charles Knell
[EMAIL PROTECTED] - email



-Original Message-
From: Satheesh <[EMAIL PROTECTED]>
Sent: Fri, 27 Apr 2007 15:21:12 +0530
To:   "Ant Users List" 
Subject:  How to set the next week start date

Hi Guys, If i want to set the current date its possible in ANT , even if i want 
a date which is some 'n' days after the current date, that also is possible..

I need a way to set the value of the next weeks start date and last week start 
date using ANT.

How can i achieve this///


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



Re: How to set the next week start date

2007-04-27 Thread Ninju Bohra
Have you looked at the  task 
(http://ant.apache.org/manual/CoreTasks/tstamp.html)

Maybe something like:


  
  

 

Also when you say 'set the current date' what does that mean?  Do you want to 
set on the OS, in an application or to a ANT property?

If you want to calculate what '7 days from now and set it to an ANT property' 
please look at the  task otherwise please provide more explaination on 
what you need.

Thanx,

Ninju


- Original Message 
From: Satheesh <[EMAIL PROTECTED]>
To: Ant Users List 
Sent: Friday, April 27, 2007 4:51:12 AM
Subject: How to set the next week start date


Hi Guys, If i want to set the current date its possible in ANT , even if i want 
a date which is some 'n' days after the current date, that also is possible..

I need a way to set the value of the next weeks start date and last week start 
date using ANT.

How can i achieve this///

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



predefined system properties?

2007-04-27 Thread Denis Bessmertnyj

Does ant have predefined system properties?
For example, I want to get current dir name.
How I may do it?

thank you


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



Perform a task for every folder from the file.

2007-04-27 Thread mpr

Hi,

I have the file user.properties and inside a paths to folders are defined
e.g.
C:\Application\PackagingTools4
C:\ApplicationTools2\PackagingTools3

For each folder from user.properties I need to perform an Operation (task).

What is the simplest way to do that?
At this moment I do:

[CODE]






 













<--! OPERATION here-->

   


[/CODE]

but I have noticed the problem. 

trim out (eat) character "\" so i get full path to folder whit out "\" 

Could you suggest to solve it?
Thank you in advance,
MR

-- 
View this message in context: 
http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10221352
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: Perform a task for every folder from the file.

2007-04-27 Thread Matt Benson
The  resourcecollection should be directly
passable to .

HTH,
Matt

--- mpr <[EMAIL PROTECTED]> wrote:

> 
> Hi,
> 
> I have the file user.properties and inside a paths
> to folders are defined
> e.g.
> C:\Application\PackagingTools4
> C:\ApplicationTools2\PackagingTools3
> 
> For each folder from user.properties I need to
> perform an Operation (task).
> 
> What is the simplest way to do that?
> At this moment I do:
> 
> [CODE]
> 
>name="genericTokenReplacement">
>property="src.file.head">
>   
>   
>   
>property="nb.matching.tokens" 
> match="([\w\\/]+)+"> 
>   
>propertyprefix="${prefix}"
> select="\1"/>
>   
>   
>   
>   
>   
>   
>delimiter="${delimiter}"
> match="~~(.+)" select="\1"/>
>   
>   
>   
>   
>   <--! OPERATION here-->
>   
>  
>   
> 
> [/CODE]
> 
> but I have noticed the problem. 
>  delimiter="${delimiter}"
> match="~~(.+)" select="\1"/>
> trim out (eat) character "\" so i get full path to
> folder whit out "\" 
> 
> Could you suggest to solve it?
> Thank you in advance,
> MR
> 
> -- 
> View this message in context:
>
http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10221352
> Sent from the Ant - Users mailing list archive at
> Nabble.com.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



How I may run junit test cases in packages?

2007-04-27 Thread Denis Bessmertnyj


Hi All,


My JUnit Test Cases have the next package structure
/root_dir
   /testcase
   /component1
   /TestComponent1.class
   /component2
   /TestComponent2.class

How I may run all this test cases with  task. May you give me and 
example.
Take note that Ant need to run this test cases without directly specifying 
test case

class names or packages. Ant may know only root_dir location.

thank you


---
Denis Bessmertnyj,
GUI SoftWeb 



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



Re: Perform a task for every folder from the file.

2007-04-27 Thread mpr

Hi,

Could you provide an example, please?



Matt Benson wrote:
> 
> The  resourcecollection should be directly
> passable to .
> 
> HTH,
> Matt
> 
> --- mpr <[EMAIL PROTECTED]> wrote:
> 
>> 
>> Hi,
>> 
>> I have the file user.properties and inside a paths
>> to folders are defined
>> e.g.
>> C:\Application\PackagingTools4
>> C:\ApplicationTools2\PackagingTools3
>> 
>> For each folder from user.properties I need to
>> perform an Operation (task).
>> 
>> What is the simplest way to do that?
>> At this moment I do:
>> 
>> [CODE]
>> 
>>  > name="genericTokenReplacement">
>>  > property="src.file.head">
>>  
>>  
>>  
>>  > property="nb.matching.tokens" 
>> match="([\w\\/]+)+"> 
>>  
>>  > propertyprefix="${prefix}"
>> select="\1"/>
>>  
>>  
>>  
>>  
>>  
>>  
>>  > delimiter="${delimiter}"
>> match="~~(.+)" select="\1"/>
>>  
>>  
>>  
>>  
>>  <--! OPERATION here-->
>>  
>> 
>>  
>> 
>> [/CODE]
>> 
>> but I have noticed the problem. 
>> > delimiter="${delimiter}"
>> match="~~(.+)" select="\1"/>
>> trim out (eat) character "\" so i get full path to
>> folder whit out "\" 
>> 
>> Could you suggest to solve it?
>> Thank you in advance,
>> MR
>> 
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10221352
>> Sent from the Ant - Users mailing list archive at
>> Nabble.com.
>> 
>> 
>>
> -
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> 
>> 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10221747
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: How I may run junit test cases in packages?

2007-04-27 Thread Donald McLean
Ok, this is just a wild guess, but is this where you would use something 
like:








Donald

Denis Bessmertnyj wrote:


Hi All,


My JUnit Test Cases have the next package structure
/root_dir
   /testcase
   /component1
   /TestComponent1.class
   /component2
   /TestComponent2.class

How I may run all this test cases with  task. May you give me and 
example.
Take note that Ant need to run this test cases without directly 
specifying test case

class names or packages. Ant may know only root_dir location.



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



Re: How I may run junit test cases in packages?

2007-04-27 Thread Denis Bessmertnyj

Here is my code





And I receive

TestCase SimplyTest
 Name Status Type Time(s)
 testcases.component1.SimplyTest

 java.lang.ClassNotFoundException: testcases.component1.SimplyTest
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)

Note, that directories and Test Cases names a bit other.

- Original Message - 
From: "Donald McLean" <[EMAIL PROTECTED]>

To: "Ant Users List" 
Sent: Friday, April 27, 2007 7:28 PM
Subject: Re: How I may run junit test cases in packages?


Ok, this is just a wild guess, but is this where you would use something 
like:








Donald

Denis Bessmertnyj wrote:


Hi All,


My JUnit Test Cases have the next package structure
/root_dir
   /testcase
   /component1
   /TestComponent1.class
   /component2
   /TestComponent2.class

How I may run all this test cases with  task. May you give me and 
example.
Take note that Ant need to run this test cases without directly 
specifying test case

class names or packages. Ant may know only root_dir location.



-
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: Perform a task for every folder from the file.

2007-04-27 Thread Matt Benson

--- mpr <[EMAIL PROTECTED]> wrote:

> 
> Hi,
> 
> Could you provide an example, please?
> 


  
  foo${br}bar${br}baz${br}
  

  


  @@[EMAIL PROTECTED]

  


-Matt

> 
> 
> Matt Benson wrote:
> > 
> > The  resourcecollection should be directly
> > passable to .
> > 
> > HTH,
> > Matt
> > 
> > --- mpr <[EMAIL PROTECTED]> wrote:
> > 
> >> 
> >> Hi,
> >> 
> >> I have the file user.properties and inside a
> paths
> >> to folders are defined
> >> e.g.
> >> C:\Application\PackagingTools4
> >> C:\ApplicationTools2\PackagingTools3
> >> 
> >> For each folder from user.properties I need to
> >> perform an Operation (task).
> >> 
> >> What is the simplest way to do that?
> >> At this moment I do:
> >> 
> >> [CODE]
> >> 
> >> >> name="genericTokenReplacement">
> >> >> property="src.file.head">
> >>
> >>
> >>
> >> >> property="nb.matching.tokens" 
> >> match="([\w\\/]+)+"> 
> >>
> >> >> propertyprefix="${prefix}"
> >> select="\1"/>
> >>
> >>
> >>
> >>
> >>
> >>
> >> >> delimiter="${delimiter}"
> >> match="~~(.+)" select="\1"/>
> >>
> >>
> >>
> >>
> >><--! OPERATION here-->
> >>
> >>   
> >>
> >> 
> >> [/CODE]
> >> 
> >> but I have noticed the problem. 
> >>  >> delimiter="${delimiter}"
> >> match="~~(.+)" select="\1"/>
> >> trim out (eat) character "\" so i get full path
> to
> >> folder whit out "\" 
> >> 
> >> Could you suggest to solve it?
> >> Thank you in advance,
> >> MR
> >> 
> >> -- 
> >> View this message in context:
> >>
> >
>
http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10221352
> >> Sent from the Ant - Users mailing list archive at
> >> Nabble.com.
> >> 
> >> 
> >>
> >
>
-
> >> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >> 
> >> 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> > http://mail.yahoo.com 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> -- 
> View this message in context:
>
http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10221747
> Sent from the Ant - Users mailing list archive at
> Nabble.com.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: How I may run junit test cases in packages?

2007-04-27 Thread Donald McLean

What is the full class name of "SimplyTest"?

If it is "component1.SimplyTest", then you would probably have to use:





If that doesn't work then it may be necessary to specify each package 
seperately:









or:








Denis Bessmertnyj wrote:

Here is my code





And I receive

TestCase SimplyTest
 Name Status Type Time(s)
 testcases.component1.SimplyTest

 java.lang.ClassNotFoundException: testcases.component1.SimplyTest
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)

Note, that directories and Test Cases names a bit other.

- Original Message - From: "Donald McLean" <[EMAIL PROTECTED]>
To: "Ant Users List" 
Sent: Friday, April 27, 2007 7:28 PM
Subject: Re: How I may run junit test cases in packages?


Ok, this is just a wild guess, but is this where you would use 
something like:








Donald

Denis Bessmertnyj wrote:


Hi All,


My JUnit Test Cases have the next package structure
/root_dir
   /testcase
   /component1
   /TestComponent1.class
   /component2
   /TestComponent2.class

How I may run all this test cases with  task. May you give me 
and example.
Take note that Ant need to run this test cases without directly 
specifying test case

class names or packages. Ant may know only root_dir location.



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



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



Re: Perform a task for every folder from the file.

2007-04-27 Thread mpr

I get 
The  type doesn't support the nested
"antlib:net.sf.antcontrib:tokens" element.

What version ant-contrib.jar should I have?



Matt Benson wrote:
> 
> 
> --- mpr <[EMAIL PROTECTED]> wrote:
> 
>> 
>> Hi,
>> 
>> Could you provide an example, please?
>> 
> 
> 
>   
>   foo${br}bar${br}baz${br}
>   
> 
>   
> 
> 
>   @@[EMAIL PROTECTED]
> 
>   
> 
> 
> -Matt
> 
>> 
>> 
>> Matt Benson wrote:
>> > 
>> > The  resourcecollection should be directly
>> > passable to .
>> > 
>> > HTH,
>> > Matt
>> > 
>> > --- mpr <[EMAIL PROTECTED]> wrote:
>> > 
>> >> 
>> >> Hi,
>> >> 
>> >> I have the file user.properties and inside a
>> paths
>> >> to folders are defined
>> >> e.g.
>> >> C:\Application\PackagingTools4
>> >> C:\ApplicationTools2\PackagingTools3
>> >> 
>> >> For each folder from user.properties I need to
>> >> perform an Operation (task).
>> >> 
>> >> What is the simplest way to do that?
>> >> At this moment I do:
>> >> 
>> >> [CODE]
>> >> 
>> >>   > >> name="genericTokenReplacement">
>> >>   > >> property="src.file.head">
>> >>   
>> >>   
>> >>   
>> >>   > >> property="nb.matching.tokens" 
>> >> match="([\w\\/]+)+"> 
>> >>   
>> >>   > >> propertyprefix="${prefix}"
>> >> select="\1"/>
>> >>   
>> >>   
>> >>   
>> >>   
>> >>   
>> >>   
>> >>   > >> delimiter="${delimiter}"
>> >> match="~~(.+)" select="\1"/>
>> >>   
>> >>   
>> >>   
>> >>   
>> >>   <--! OPERATION here-->
>> >>   
>> >>  
>> >>   
>> >> 
>> >> [/CODE]
>> >> 
>> >> but I have noticed the problem. 
>> >> > >> delimiter="${delimiter}"
>> >> match="~~(.+)" select="\1"/>
>> >> trim out (eat) character "\" so i get full path
>> to
>> >> folder whit out "\" 
>> >> 
>> >> Could you suggest to solve it?
>> >> Thank you in advance,
>> >> MR
>> >> 
>> >> -- 
>> >> View this message in context:
>> >>
>> >
>>
> http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10221352
>> >> Sent from the Ant - Users mailing list archive at
>> >> Nabble.com.
>> >> 
>> >> 
>> >>
>> >
>>
> -
>> >> To unsubscribe, e-mail:
>> >> [EMAIL PROTECTED]
>> >> For additional commands, e-mail:
>> >> [EMAIL PROTECTED]
>> >> 
>> >> 
>> > 
>> > 
>> > __
>> > Do You Yahoo!?
>> > Tired of spam?  Yahoo! Mail has the best spam
>> protection around 
>> > http://mail.yahoo.com 
>> > 
>> >
>>
> -
>> > To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> > For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10221747
>> Sent from the Ant - Users mailing list archive at
>> Nabble.com.
>> 
>> 
>>
> -
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> 
>> 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10222424
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: Perform a task for every folder from the file.

2007-04-27 Thread Matt Benson
I can't recall when AC last had a release; you might
have to build from the current source, wherein 
can handle any type that returns an Iterator.

-Matt

--- mpr <[EMAIL PROTECTED]> wrote:

> 
> I get 
> The  type doesn't
> support the nested
> "antlib:net.sf.antcontrib:tokens" element.
> 
> What version ant-contrib.jar should I have?
> 
> 
> 
> Matt Benson wrote:
> > 
> > 
> > --- mpr <[EMAIL PROTECTED]> wrote:
> > 
> >> 
> >> Hi,
> >> 
> >> Could you provide an example, please?
> >> 
> > 
> > 
> >   
> >file="tokens">foo${br}bar${br}baz${br}
> >   
> > 
> >   
> > 
> > 
> >   @@[EMAIL PROTECTED]
> > 
> >   
> > 
> > 
> > -Matt
> > 
> >> 
> >> 
> >> Matt Benson wrote:
> >> > 
> >> > The  resourcecollection should be
> directly
> >> > passable to .
> >> > 
> >> > HTH,
> >> > Matt
> >> > 
> >> > --- mpr <[EMAIL PROTECTED]>
> wrote:
> >> > 
> >> >> 
> >> >> Hi,
> >> >> 
> >> >> I have the file user.properties and inside a
> >> paths
> >> >> to folders are defined
> >> >> e.g.
> >> >> C:\Application\PackagingTools4
> >> >> C:\ApplicationTools2\PackagingTools3
> >> >> 
> >> >> For each folder from user.properties I need to
> >> >> perform an Operation (task).
> >> >> 
> >> >> What is the simplest way to do that?
> >> >> At this moment I do:
> >> >> 
> >> >> [CODE]
> >> >> 
> >> >>  description="genericTokenReplacements"
> >> >> name="genericTokenReplacement">
> >> >>  >> >> property="src.file.head">
> >> >> 
> >> >> 
> >> >> 
> >> >>  property="nb.matching.tokens" 
> >> >> match="([\w\\/]+)+"> 
> >> >> 
> >> >>  >> >> propertyprefix="${prefix}"
> >> >> select="\1"/>
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >>  >> >> delimiter="${delimiter}"
> >> >> match="~~(.+)" select="\1"/>
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >> <--! OPERATION here-->
> >> >> 
> >> >>
> >> >> 
> >> >> 
> >> >> [/CODE]
> >> >> 
> >> >> but I have noticed the problem. 
> >> >>  >> >> delimiter="${delimiter}"
> >> >> match="~~(.+)" select="\1"/>
> >> >> trim out (eat) character "\" so i get full
> path
> >> to
> >> >> folder whit out "\" 
> >> >> 
> >> >> Could you suggest to solve it?
> >> >> Thank you in advance,
> >> >> MR
> >> >> 
> >> >> -- 
> >> >> View this message in context:
> >> >>
> >> >
> >>
> >
>
http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10221352
> >> >> Sent from the Ant - Users mailing list archive
> at
> >> >> Nabble.com.
> >> >> 
> >> >> 
> >> >>
> >> >
> >>
> >
>
-
> >> >> To unsubscribe, e-mail:
> >> >> [EMAIL PROTECTED]
> >> >> For additional commands, e-mail:
> >> >> [EMAIL PROTECTED]
> >> >> 
> >> >> 
> >> > 
> >> > 
> >> >
> __
> >> > Do You Yahoo!?
> >> > Tired of spam?  Yahoo! Mail has the best spam
> >> protection around 
> >> > http://mail.yahoo.com 
> >> > 
> >> >
> >>
> >
>
-
> >> > To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> > For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >> > 
> >> > 
> >> > 
> >> 
> >> -- 
> >> View this message in context:
> >>
> >
>
http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10221747
> >> Sent from the Ant - Users mailing list archive at
> >> Nabble.com.
> >> 
> >> 
> >>
> >
>
-
> >> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >> 
> >> 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> > http://mail.yahoo.com 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> -- 
> View this message in context:
>
http://www.nabble.com/Perform-a-task-for-every-folder-from-the-file.-tf3658328.html#a10222424
> Sent from the Ant - Users mailing list archive at
> Nabble.com.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


_

classpath value have been ignored.

2007-04-27 Thread Chun Ji

I have such things in my build.xml, 
" 
  
    
  

   
   
  
   
   

   
   
", 
which is supposed to do a jsp precompile work. ( it is suggested by the tomcat 
5.5). And I thought when I run "ant jspc", it will include the classpath value 
that I have set for "jboss.jsp.clsspath", but it doesn't? 

Does someone know why ?  I am using jdk 1.6, And 1.7 on linux box. 


Thanks, 


Chun 

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



redirect file output to console

2007-04-27 Thread Josh Lubell
Is there an easy way to cause output from an Ant task that is normally 
written to a file to be written to the console instead? Specifically I 
would like XML transformation result of an xslt task to appear in the 
Ant output rather than in an output file.


Thank you,
Josh

--
Josh Lubell, NIST
Manufacturing Systems Integration Division
100 Bureau Drive, Stop 8263
Gaithersburg MD 20899-8263 USA
Phone: 1-301-975-3563, Email: [EMAIL PROTECTED]



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



Re: redirect file output to console

2007-04-27 Thread Josh Lubell

I found an answer to my question: use the concat task with a nested fileset.

Example:




 


Josh Lubell wrote:
Is there an easy way to cause output from an Ant task that is normally 
written to a file to be written to the console instead? Specifically I 
would like XML transformation result of an xslt task to appear in the 
Ant output rather than in an output file.


Thank you,
Josh




--
Josh Lubell, NIST
Manufacturing Systems Integration Division
100 Bureau Drive, Stop 8263
Gaithersburg MD 20899-8263 USA
Phone: 1-301-975-3563, Email: [EMAIL PROTECTED]



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



Re: How to set the next week start date

2007-04-27 Thread Gilbert Rebhan


Hi,

Ninju Bohra wrote:

Have you looked at the  task 
(http://ant.apache.org/manual/CoreTasks/tstamp.html)

Maybe something like:


  
  


i tried that on Win2000, with jdk 1.5.0_11 ant 1.6.5


 
   
 
   
 

 

  Antversion == ${ant.version}
  Today == ${TODAY}

  $${touch.time} == ${touch.time}

 


and it gave me =

Buildfile: J:\eclipse_3_2\workspace\AntTest\tstamp.xml
depends:
main:
 [echo] Antversion == Apache Ant version 1.6.5 compiled on June 2 2005
 [echo] Today == April 27 2007
 [echo]
 [echo] ${touch.time} == 19/15/2007 09:19 PM
BUILD SUCCESSFUL
Total time: 156 milliseconds


hm, strange 19/15/2007 ??

i think you meant something like =





or






similar to the example from manual :

  
  
  


but that gives him the actual date minus | plus 7 days.

> Also when you say 'set the current date' what does that mean?
> If you want to calculate what '7 days from now and set it to an ANT
> property'
>please look at the  task otherwise please provide more 
>explaination on what you need.


I thought the original poster was asking for

"...
the next weeks start date and last week start date
..."

because of that i suggested the 

Re: predefined system properties?

2007-04-27 Thread Scot P. Floess

Are you wanting system properties?  That's built into Java...

Look at System.getProperties()

Or

http://java.sun.com/docs/books/tutorial/essential/environment/sysprop.html

I think you are after:  |user.dir|

Denis Bessmertnyj wrote:

Does ant have predefined system properties?
For example, I want to get current dir name.
How I may do it?

thank you


-
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-392-6730 (Work)

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