ant task

2006-07-28 Thread satheesh

I have written a java class which will add two values and print it in the
console and I called that class in ant as mentioned below,
how can I get that value (or returned that value from class) back to ant
target or the property tag




 


What's the solution for this proble? 

Thanks, 
satheesh


-- 
View this message in context: 
http://www.nabble.com/ant-task-tf2018649.html#a5550504
Sent from the Ant - Users forum at Nabble.com.


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



copy files using mapper

2006-08-04 Thread satheesh

I Need to copy files from  D:\dirA\dirB\dirC\dirD\*.jsp To
D:\dirA\dirD\*.jsp,
I tried with mapper also, I am unable to do this and I can't hard code this 
directory structure because I have many modules like dirA,

Eg . here I need to remove the dirB\dirC

D:\dirA1\dirB\dirC\dirDx\*.jsp  To D:\dirA1\dirDx\*.jsp,
D:\dirA2\dirB\dirC\dirDy\*.jsp  To D:\dirA2\dirDy\*.jsp,

… can you please give me the solution?
Rgds
sathees

-- 
View this message in context: 
http://www.nabble.com/copy-files-using-mapper-tf2054672.html#a5661171
Sent from the Ant - Users forum at Nabble.com.


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



Re: How to set the next week start date

2007-05-01 Thread Satheesh
Hi, Actually what i need is irrespective of the current date, i need the
starting date of the next week and starting date of the last week..

- Original Message -
From: "Gilbert Rebhan" <[EMAIL PROTECTED]>
To: "Ant Users List" 
Sent: Saturday, April 28, 2007 1:03 AM
Subject: Re: How to set the next week start date


>
> Hi,
>
> Ninju Bohra wrote:
> > Have you looked at the  task
(http://ant.apache.org/manual/CoreTasks/tstamp.html)
> >
> > Maybe something like:
> >
> > 
> >>   offset="7" unit="week"/>
> >   
>
> i tried that on Win2000, with jdk 1.5.0_11 ant 1.6.5
>
> 
>   
> 
>  offset="7" unit="week"/>
> 
>   
>
>   
> 
>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 =
>
> 
>offset="-7" unit="day"/>
> 
>
> or
>
> 
>offset="7" unit="day"/>
> 
>
>
> similar to the example from manual :
>
>
>offset="-5" unit="hour"/>
>
>
>
> 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: How to set the next week start date

2007-05-01 Thread Satheesh
Thanks Charles,
Actually i need the starting date of the next week and last week ..

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


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


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



How to get the month number thro ant.

2007-05-21 Thread Satheesh
Hi I need to set a property in my build.xml which has the value of the current 
month so that i can use that in my test cases.

How can i achieve this.
Am totally new to this Ant.

Satheesh . J
99450 31654

Lisle Technology Partners India Pvt Ltd
1134, 4th Floor, 100 Feet Road
HAL 2nd Stage, Indiranagar
Bangalore 560 038, India
Telefax. +91-80-2521 0604/05


Copying the contents of all the files in one directory to a single file

2007-05-29 Thread Satheesh
Actually i need to copy the  contents of all the javascript files which reside 
in scripts directory into one common.js file in the same directory..
Like appending all the files into common.js..

The same way i need to do all the .css files also to a common.css file..
Can anyone suggest a way to achieve this?

Satheesh . J
99450 31654

Lisle Technology Partners India Pvt Ltd
1134, 4th Floor, 100 Feet Road
HAL 2nd Stage, Indiranagar
Bangalore 560 038, India
Telefax. +91-80-2521 0604/05


How to RENAME a file in ANT 1.6.2

2007-06-22 Thread Satheesh
I need to copy a file and rename it and store it in some other folder.
What tag should i use..
Is that  or  or //
Am not clear in it.


Satheesh . J
99450 31654

Lisle Technology Partners India Pvt Ltd
1134, 4th Floor, 100 Feet Road
HAL 2nd Stage, Indiranagar
Bangalore 560 038, India
Telefax. +91-80-2521 0604/05


How to get the current month number

2008-02-01 Thread Satheesh

Hi. This is the qmail-send program at apache.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

Thanks.
Satheesh.J


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