RE: I need to write a task for Tagging

2007-04-19 Thread alam

Hey I am using Ant i need to write one task just like any other task i need
to write an ant task for TAG...

Gilles Scokart wrote:
> 
> I speak for for me, but no. Sorry I don't understand.
> 
> How/what would you do without ant?
> 
> Gilles
> 
>> -Original Message-
>> From: alam [mailto:[EMAIL PROTECTED]
>> Sent: jeudi 19 avril 2007 8:20
>> To: user@ant.apache.org
>> Subject: RE: I need to write a task for Tagging
>> 
>> 
>> See i will try to explain you what i am trying to do..
>>   I checkout two module say A and B now i am trying to tag these module
>> and
>> i have to put the timestamp i am ok with time stamp after doing the build
>> i
>> need to tag these as a final i did build in my local machine hope u
>> understand what i am trying to do...
>> 
>> 
>> 
>> Regards
>> Manauwar
>> 
>> Prashant Reddy-2 wrote:
>> >
>> > Try
>> >
>> > 
>> >
>> > You will get more help, if you are more specific about what you want to
>> > achieve.
>> >
>> > -Prashant
>> >
>> > On Wed, 2007-04-18 at 22:04 -0700, alam wrote:
>> >> Hi as Prashant has given me some link regarding the cvs
>> checkout,update
>> >> that
>> >> is fine but i want how to write a task "TAG" a module can anyone help
>> me
>> >> out..
>> >>
>> >>
>> >> Rgards
>> >> manauwar
>> >>
>> >> Prashant-4 wrote:
>> >> >
>> >> > I suppose you mean to tag a particular file in your version control
>> >> > system. The answer to your question would depend on which version
>> >> > control system you use.
>> >> >
>> >> > ANT has tasks for CVS, and Subversion
>> >> >
>> >> > Check out:
>> >> > http://ant.apache.org/manual/CoreTasks/cvs.html
>> >> >
>> >> > I am not a Subversion user but quick googling provided this library
>> :
>> >> >
>> >> > http://subclipse.tigris.org/svnant.html
>> >> >
>> >> > Hope this helps
>> >> > -Prashant
>> >> >
>> >> > On Wed, 2007-04-18 at 05:13 -0700, alam wrote:
>> >> >> Here   i mean that i did the build for a module and now i would
>> like
>> >> to
>> >> >> TAG
>> >> >> it and put the timestamp i am able to write the timestamp but can
>> you
>> >> >> help
>> >> >> me how should i write a task for TAG
>> >> >>
>> >> >> Gilles Scokart wrote:
>> >> >> >
>> >> >> > What do you mean by tagging a file?
>> >> >> >
>> >> >> > Gilles
>> >> >> >
>> >> >> >> -Original Message-
>> >> >> >> From: alam [mailto:[EMAIL PROTECTED]
>> >> >> >> Sent: mercredi 18 avril 2007 13:45
>> >> >> >> To: user@ant.apache.org
>> >> >> >> Subject: I need to write a task for Tagging
>> >> >> >>
>> >> >> >>
>> >> >> >> Hi i am new to ANT i need to write a task for tagging a file can
>> >> >> anyone
>> >> >> >> help
>> >> >> >> me  how i proceed
>> >> >> >>
>> >> >> >> Regards
>> >> >> >> Manauwar
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> http://www.nabble.com/I-need-to-write-a-
>> >> >> >> task-for-Tagging-tf3600501.html#a10056980
>> >> >> >> Sent from the Ant - Users mailing list archive at Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> -
>> >> >> >> 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]
>> >
>> >
>> >
>> 
>> --
>> View this message in context: http://www.nabble.com/I-need-to-write-a-
>> task-for-Tagging-tf3600501.html#a10072393
>> Sent from the Ant - Users mailing list archive at Nabble.com.
>> 
>> 
>> -
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/I-need-to-write-a-task-for-Tagging-tf3600501.html#a10072890
Sent from the Ant - Users mailing list archive at Nabble.com.


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



Query regarding working of Ant

2007-04-19 Thread raj kanwal

I have installed Apache Ant1.7.0. When I run ant command it is giving error
build.xml file not found..The files that r present in my directory Apache
Ant are fetch.xml and get-m2.xml.
When I try to run
ant -buildfile fetch.xml it is giving an error  - "import command not found"
, similar is the error with get-m2.xml...
I am not able to locate build.xml.
ant -version is working fine.
If anyone of u can help me


RE: Query regarding working of Ant

2007-04-19 Thread Rebhan, Gilbert
 
Hi,

-Original Message-
From: raj kanwal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 19, 2007 8:43 AM
To: user@ant.apache.org
Subject: Query regarding working of Ant


>build.xml file not found.

that's normal when running ant command without
pointing to a file, i.e. C:\>ant

>ant -buildfile fetch.xml it is giving an error  - "import command not
found"

sounds like a syntax error in your build file.

are you trying something like =







some editors, f.e. Eclipse show errors, better than using notepad.


Regards, Gilbert


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



AW: Query regarding working of Ant

2007-04-19 Thread Jan.Materne
Your main problem is, that you need a buildfile (build.xml) for your project. 
So you have to write that.

http://ant.apache.org/manual/using.html#buildfile
http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html
 

Jan


>-Ursprüngliche Nachricht-
>Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] 
>Gesendet: Donnerstag, 19. April 2007 10:37
>An: Ant Users List
>Betreff: RE: Query regarding working of Ant
>
> 
>Hi,
>
>-Original Message-
>From: raj kanwal [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, April 19, 2007 8:43 AM
>To: user@ant.apache.org
>Subject: Query regarding working of Ant
>
>
>>build.xml file not found.
>
>that's normal when running ant command without
>pointing to a file, i.e. C:\>ant
>
>>ant -buildfile fetch.xml it is giving an error  - "import command not
>found"
>
>sounds like a syntax error in your build file.
>
>are you trying something like =
>
>
>
>
>
>
>
>some editors, f.e. Eclipse show errors, better than using notepad.
>
>
>Regards, Gilbert
>
>
>-
>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]



zip-included files

2007-04-19 Thread prasad kumar
Hi,
   
  i have to zip the files ofter taking the build,for that one i have used like 
below
   
  
   


   
   
  
   
   
  but my problem is the zip it is including only two files with 30 MB(ear,rtf 
files) capacity.i need to include all the files(pdf,properties,xml,ear,rtf ).
   
  (i think memory limitation is there to zip the files with ant)
   
  if anybody solve this problem with ant, that's a great appreciation.
  please give me immediate reply, i have been trying last two days.
   
  thanks,
  prasad kumar
   
   
   

   
-
 Check out what you're missing if you're not on Yahoo! Messenger 

tag inside some other tag(cvs)

2007-04-19 Thread prasad kumar
Hi,
   
  i have to create one more tag(for ex: child tag of HEAD tag(cvs))  inside 
some other tag(for ex:inside HEAD  tag(cvs)) ofter a successfull build,is it 
possible with ant to create one more tag inside some other tag.if then,how, 
please tell me
   
  Thanks,
  prasad

   
-
 Check out what you're missing if you're not on Yahoo! Messenger 

Fwd: tag inside some other tag(cvs)

2007-04-19 Thread prasad kumar


Note: forwarded message attached.
   
-
 Check out what you're missing if you're not on Yahoo! Messenger --- Begin Message ---
Hi,
   
  i have to create one more tag(for ex: child tag of HEAD tag(cvs))  inside 
some other tag(for ex:inside HEAD  tag(cvs)) ofter a successfull build,is it 
possible with ant to create one more tag inside some other tag.if then,how, 
please tell me
   
  Thanks,
  prasad

   
-
 Check out what you're missing if you're not on Yahoo! Messenger --- End Message ---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: zip-included files

2007-04-19 Thread Steve Loughran

prasad kumar wrote:

Hi,
   
  i have to zip the files ofter taking the build,for that one i have used like below
   
  

   


   
   
  
   
   
  but my problem is the zip it is including only two files with 30 MB(ear,rtf files) capacity.i need to include all the files(pdf,properties,xml,ear,rtf ).
   
  (i think memory limitation is there to zip the files with ant)
   


No, I think the filesets are probably wrong. Ant will handle anything up 
to and possibly beyond 4GB. Why not use  to get stuff into the 
place/position you want it, so you can see at a glance which things work 
and which don't. then zip everything up in one go.


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



Settting environment variables

2007-04-19 Thread query
  
 
Hi,

I am having a set of ANT build files. I want to change "Path" and "include" 
environment variables only in build file.
I tried the following options to reset "include" variable in the build file.

 
1.
 
  
  
2.

3.

4.


When I tried to echo "include" variable in the same build file, it is still 
showing the default old settings.

Is there any other way to modify the environment variables only for some 
instance and not for other? 


Re: zip-included files

2007-04-19 Thread prasad kumar
hi,
   
  no,it is allowing only one  inside .
   
  but my require ment is i need to copy ear file from the build dir to some 
other location folder and zip some other location folder files  as well as this 
ear file of current build.for that one i have written below.it is zipping only 
ear,rtf files .
   zip is not including pdf,.properties,xml files.
   
  what i have wriiten ant script is  correct i hope.
   
  please correct the script and  give the reply with script if anybody knows.
   
  thanks,
  prasad
  
Steve Loughran <[EMAIL PROTECTED]> wrote:
  prasad kumar wrote:
> Hi,
> 
> i have to zip the files ofter taking the build,for that one i have used like 
> below
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> but my problem is the zip it is including only two files with 30 MB(ear,rtf 
> files) capacity.i need to include all the files(pdf,properties,xml,ear,rtf ).
> 
> (i think memory limitation is there to zip the files with ant)
> 

No, I think the filesets are probably wrong. Ant will handle anything up 
to and possibly beyond 4GB. Why not use to get stuff into the 
place/position you want it, so you can see at a glance which things work 
and which don't. then zip everything up in one go.

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



   
-
 Check out what you're missing if you're not on Yahoo! Messenger 

RE: Settting environment variables

2007-04-19 Thread Kajsa.Anderson
Propertys in Ant are immutable, so you can't reset the value (with vanilla Ant 
- ant-contrib may let you). 

Depending on what you need the system property for, though, you may be able to 
use .

Kajsa

-Original Message-
From: query [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 19, 2007 8:26 AM
To: ant
Subject: Settting environment variables

  
 
Hi,

I am having a set of ANT build files. I want to change "Path" and "include" 
environment variables only in build file.
I tried the following options to reset "include" variable in the build file.

 
1.
 
  
  
2.

3.

4.


When I tried to echo "include" variable in the same build file, it is still 
showing the default old settings.

Is there any other way to modify the environment variables only for some 
instance and not for other? 

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



Re: zip-included files

2007-04-19 Thread Steve Loughran

prasad kumar wrote:

hi,
   
  no,it is allowing only one  inside .


you shouldnt be allowed any copy inside a zip

   
  but my require ment is i need to copy ear file from the build dir to some other location folder and zip some other location folder files  as well as this ear file of current build.for that one i have written below.it is zipping only ear,rtf files .

   zip is not including pdf,.properties,xml files.
   
  what i have wriiten ant script is  correct i hope.


like I said, I think your fileset is wrong. consult the documentation on 
fileset patterns, then run the build in -verbose



  please correct the script and  give the reply with script if anybody knows.


This could be a good time to learn to use the build debuggers in 
NetBeans and Eclipse.






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



Re: Settting environment variables

2007-04-19 Thread Martin Gainty
true ..the immutable property primary contribution was in file property 
expansion and the ability for the value of an environment var to propagate 
to 'property'


If you're looking for the ability to change (a variable) in build.xml take 
look at ant-contrib 'variable'

http://ant-contrib.sourceforge.net/tasks/tasks/variable_task.html

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: <[EMAIL PROTECTED]>

To: 
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, April 19, 2007 10:11 AM
Subject: RE: Settting environment variables


Propertys in Ant are immutable, so you can't reset the value (with vanilla 
Ant - ant-contrib may let you).


Depending on what you need the system property for, though, you may be able 
to use .


Kajsa

-Original Message-
From: query [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 19, 2007 8:26 AM
To: ant
Subject: Settting environment variables



Hi,

I am having a set of ANT build files. I want to change "Path" and "include" 
environment variables only in build file.

I tried the following options to reset "include" variable in the build file.


1.

 

2.

3.

4.


When I tried to echo "include" variable in the same build file, it is still 
showing the default old settings.


Is there any other way to modify the environment variables only for some 
instance and not for other?


-
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: zip-included files

2007-04-19 Thread prasad kumar
hi,
   
  please anybody knows the solution to get the ownership on particular folder,
   
  give the reply immediately.
   
  

prasad kumar <[EMAIL PROTECTED]> wrote:
hi,
  if iam using like below
   
   it is zipping but it is not not including
  all the required files.
   
  if iam using 
   it is giving error as "problem opening 
.xml".
   
  (just i changed dir to src).
   
  i checked the folder properties,it is there in read only checked mode i 
changed to unchecked mode,but ofter some time if iam seeing folder properties 
it is in read only cheked mode.how can i get the ownership on that particular 
folder.iam using windows xp professional o/s.
  if i solve this,then
   
  if i use below code
   
  
   
  it will zip all the required files what i mentioned in build.xml
  

Steve Loughran <[EMAIL PROTECTED]> wrote:
  prasad kumar wrote:
> hi,
> 
> no,it is allowing only one inside .

you shouldnt be allowed any copy inside a zip

> 
> but my require ment is i need to copy ear file from the build dir to some 
> other location folder and zip some other location folder files as well as 
> this ear file of current build.for that one i have written below.it is 
> zipping only ear,rtf files .
> zip is not including pdf,.properties,xml files.
> 
> what i have wriiten ant script is correct i hope.

like I said, I think your fileset is wrong. consult the documentation on 
fileset patterns, then run the build in -verbose

> please correct the script and give the reply with script if anybody knows.

This could be a good time to learn to use the build debuggers in 
NetBeans and Eclipse.





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



-
  Check out what you're missing if you're not on Yahoo! Messenger 

   
-
 Check out what you're missing if you're not on Yahoo! Messenger 

Re: zip-included files

2007-04-19 Thread prasad kumar
hi,
  if iam using like below
   
   it is zipping but it is not not including
  all the required files.
   
  if iam using 
   it is giving error as "problem opening 
.xml".
   
  (just i changed dir to src).
   
  i checked the folder properties,it is there in read only checked mode i 
changed to unchecked mode,but ofter some time if iam seeing folder properties 
it is in read only cheked mode.how can i get the ownership on that particular 
folder.iam using windows xp professional o/s.
  if i solve this,then
   
  if i use below code
   
  
   
  it will zip all the required files what i mentioned in build.xml
  

Steve Loughran <[EMAIL PROTECTED]> wrote:
  prasad kumar wrote:
> hi,
> 
> no,it is allowing only one inside .

you shouldnt be allowed any copy inside a zip

> 
> but my require ment is i need to copy ear file from the build dir to some 
> other location folder and zip some other location folder files as well as 
> this ear file of current build.for that one i have written below.it is 
> zipping only ear,rtf files .
> zip is not including pdf,.properties,xml files.
> 
> what i have wriiten ant script is correct i hope.

like I said, I think your fileset is wrong. consult the documentation on 
fileset patterns, then run the build in -verbose

> please correct the script and give the reply with script if anybody knows.

This could be a good time to learn to use the build debuggers in 
NetBeans and Eclipse.





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



   
-
 Check out what you're missing if you're not on Yahoo! Messenger 

tag inside another tag(for tagging the new build files)

2007-04-19 Thread prasad kumar
Hi,
   i have to create one more tag(for tagging all new files inside this tag,for 
ex: child tag of HEAD tag(cvs))  inside some other tag(for ex:HEAD  tag(cvs)) 
ofter a successfull build,is it possible with ant to create one more tag inside 
some other tag.
   
  i think there is no option in ant to create new tag inside some other tag.
   
  or atleast is it possible to create new tag.
   
  i checked the .there is only one option is there 
  but it is only for existing tag(if already created),we can take the checkout.
   
  but i want to create new tag,is it possible with ant,
   
  i checked the documenation of ant there is no option to create new tag i hope,
   
  if no option is there,using which tool we can create the new tag.
   
  is there any tool?
   
  if anybody help,that's great appreciation
   
  thanks,
  prasad
   

   
-
 Check out what you're missing if you're not on Yahoo! Messenger 

Re: tag inside some other tag(cvs)

2007-04-19 Thread Geoffrey Mitchell
The question is not "can ant do that?".  The question is "can cvs do 
that?".  And the answer is "Huh?".  What do you mean by a tag inside of 
another tag?  One version of a file can have multiple tags, but there is 
no sense of hierarchy to them.


However you slice it, this is totally off topic for this list.  Try 
reading a book on cvs.


prasad kumar wrote:


Hi,
  
 i have to create one more tag(for ex: child tag of HEAD tag(cvs))  inside some other tag(for ex:inside HEAD  tag(cvs)) ofter a successfull build,is it possible with ant to create one more tag inside some other tag.if then,how, please tell me
  
 Thanks,

 prasad

  
-
Check out what you're missing if you're not on Yahoo! Messenger 
 



--
Geoffrey Mitchell
Programmer/Analyst
Home Decorator's Collection
314-684-1062


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



RE: help! how to send multiple files to remote machine? ant-jsch

2007-04-19 Thread Anil Philip
Do you mean jsch API?
(there is no jscp api)


--- "Anderson, Rob (Global Trade)"
<[EMAIL PROTECTED]> wrote:

> Anil, Not sure what you are asking. You have seen
> the examples for using
> scp with a fileset. What is the problem you are
> having now? Is it not
> working? You mentioned you are using the scp task
> programatically. I
> would recommend against that. I suggest using jscp
> API directly because
> I'm not sure that anything is gained by using the
> Ant scp task. Look at
> the Ant scp task as an example of how to use jscp.
> 
> My 2 cents.
> 
> -Rob Anderson
> 
> > -Original Message-
> > From: Anil Philip
> [mailto:[EMAIL PROTECTED] 
> > Sent: Sunday, April 15, 2007 3:34 PM
> > To: user@ant.apache.org
> > Subject: RE: help! how to send multiple files to
> remote 
> > machine? ant-jsch
> > 
> > No replies?
> > 
> > --- Anil Philip <[EMAIL PROTECTED]> wrote:
> > 
> > > I am using scp programmatically, but I found
> this task here with 
> > > wildcards, in the examples documentation
> > > -
> > > Anil
> > > .
> > > 
> > > Copy a set of files to a directory
> > > 
> > >todir="user:[EMAIL PROTECTED]:/home/chuck">
> > > 
> > >   
> > > 
> > >   
> > > 
> > >todir="user:[EMAIL PROTECTED]:/home/chuck">
> > >  excludes="**/*.java"/>
> > >   
> > > 
> > > 
> > > --- Anil Philip <[EMAIL PROTECTED]>
> wrote:
> > > 
> > > > Thank you for replying.
> > > > Is there an example I can look at for
> transferring multiple files?
> > > > I did a google search but was unable.
> > > > thanks,
> > > > Anil
> > > > 
> > > > --- "Anderson, Rob (Global Trade)"
> > > > <[EMAIL PROTECTED]> wrote:
> > > > 
> > > > > The wildcard is not resolved in ant. This is
> a common 
> > mistake as 
> > > > > people expect Ant to resolve wildcards as a
> shell
> > > would.
> > > > > You would need to use
> > > > > a fileset. 
> > > > > 
> > > > > -Rob Anderson
> > > > > 
> > > > > > -Original Message-
> > > > > > From: Anil Philip
> > > > > [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Wednesday, April 11, 2007 12:13 PM
> > > > > > To: user@ant.apache.org
> > > > > > Subject: help! how to send multiple files
> to
> > > > > remote machine? ant-jsch
> > > > > > 
> > > > > > Have you used scp to send the files from
> an
> > > > entire
> > > > > folder? 
> > > > > > Is there *another* way besides using
> > > wildcards?
> > > > > > I was sending it one file at a time and it
> > > would
> > > > > send two and
> > > > > > then stop.
> > > > > > I am trying to get it to send all the
> files at
> > > > > once.
> > > > > > But when I specify
> > > > > > D:\outbound\*
> > > > > >  then I get
> > > > > > 
> > > > > >  java.io.FileNotFoundException:
> D:\outbound\*
> > > > (The
> > > > > filename,
> > > > > > directory name, or volume label syntax is
> > > > > > incorrect)
> > > > > > 
> > > > > >at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:215)
> > > > > > 
> > > > > > -
> > > > > > 
> > > > > > thanks,
> > > > > > 
> > > > > > Anil Philip 
> > > > > > 
> > > > > > 
> > > > > >void sendFiles(File outFolder)
> throws
> > > > > IOException {
> > > > > > Scp sendFile = new Scp(); 
> > > > > > Project proj = new Project();
> > > > > > proj.init();
> > > > > > sendFile.setProject(proj);
> > > > > > sendFile.setPort(22);
> > > > > > sendFile.setTrust(true);
> > > > > >
> sendFile.setFile(outFolder.getPath() +
> > > > > File.separator + "*");
> > > > > > String hostUri = remoteUserName +
> "@"
> > > +
> > > > > remoteUrl +
> > > > > > ":" + remotePath;
> > > > > > sendFile.setTodir(hostUri);
> > > > > >
> sendFile.setKeyfile(remoteKeyFile);
> > > > > > sendFile.setPassphrase("");
> > > > > > logger.debug("about to SCP the
> file "
> > > +
> > > > > > outFolder.getName() + "
> > > > > > to Sprint");
> > > > > > sendFile.execute();
> > > > > > // send all files in the out dir 
> > > > > > // Move the file to the done
> directory
> > > > > > File[] files =
> outFolder.listFiles();
> > > > > > for(File outFile:files) {
> > > > > > copy(outFile,new
> > > > > > File(sentFolder.getAbsolutePath() +
> > > > File.separator
> > > > > + 
> > > > > > outFile.getName()));
> > > > > > outFile.delete();
> > > > > > if(outFile.exists())
> > > > > > logger.error("Failed to
> move
> > > the
> > > > > file"
> > > > > > +
> > > > > > outFile.getName() + " to the done
> directory");
> > > > > > else 
> > > > > > logger.debug("Moved the
> file "
> > > +
> > > > > > outFile.getName() + "
> > > > > > to the done directory");
> > > > > > }
> > > > > > }
> > > > > > 
> > > > > > 
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
__
> > > > > > 

RE: tag inside some other tag(cvs)

2007-04-19 Thread RADEMAKERS Tanguy
Prasad,

How would you do what you are trying to do *without* ant? In other
words, how would you do this using just the cvs command line client? If
you can post the commands you would use (copy and paste them from your
command line window) maybe it would clear things up for us.

/t 

>-Original Message-
>From: Geoffrey Mitchell [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, April 19, 2007 5:25 PM
>To: Ant Users List
>Subject: Re: tag inside some other tag(cvs)
>
>The question is not "can ant do that?".  The question is "can cvs do 
>that?".  And the answer is "Huh?".  What do you mean by a tag 
>inside of 
>another tag?  One version of a file can have multiple tags, 
>but there is 
>no sense of hierarchy to them.
>
>However you slice it, this is totally off topic for this list.  Try 
>reading a book on cvs.
>
>prasad kumar wrote:
>
>>Hi,
>>   
>>  i have to create one more tag(for ex: child tag of HEAD 
>tag(cvs))  inside some other tag(for ex:inside HEAD  tag(cvs)) 
>ofter a successfull build,is it possible with ant to create 
>one more tag inside some other tag.if then,how, please tell me
>>   
>>  Thanks,
>>  prasad

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



RE: help! how to send multiple files to remote machine? ant-jsch

2007-04-19 Thread Anderson, Rob (Global Trade)
Yes. That is what I meant. 

> -Original Message-
> From: Anil Philip [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 19, 2007 9:49 AM
> To: Ant Users List
> Subject: RE: help! how to send multiple files to remote 
> machine? ant-jsch
> 
> Do you mean jsch API?
> (there is no jscp api)
> 
> 
> --- "Anderson, Rob (Global Trade)"
> <[EMAIL PROTECTED]> wrote:
> 
> > Anil, Not sure what you are asking. You have seen the examples for 
> > using scp with a fileset. What is the problem you are 
> having now? Is 
> > it not working? You mentioned you are using the scp task 
> > programatically. I would recommend against that. I suggest 
> using jscp 
> > API directly because I'm not sure that anything is gained 
> by using the 
> > Ant scp task. Look at the Ant scp task as an example of how to use 
> > jscp.
> > 
> > My 2 cents.
> > 
> > -Rob Anderson
> > 
> > > -Original Message-
> > > From: Anil Philip
> > [mailto:[EMAIL PROTECTED]
> > > Sent: Sunday, April 15, 2007 3:34 PM
> > > To: user@ant.apache.org
> > > Subject: RE: help! how to send multiple files to
> > remote
> > > machine? ant-jsch
> > > 
> > > No replies?
> > > 
> > > --- Anil Philip <[EMAIL PROTECTED]> wrote:
> > > 
> > > > I am using scp programmatically, but I found
> > this task here with
> > > > wildcards, in the examples documentation
> > > > -
> > > > Anil
> > > > .
> > > > 
> > > > Copy a set of files to a directory
> > > > 
> > > >> todir="user:[EMAIL PROTECTED]:/home/chuck">
> > > > 
> > > >   
> > > > 
> > > >   
> > > > 
> > > >> todir="user:[EMAIL PROTECTED]:/home/chuck">
> > > >  > excludes="**/*.java"/>
> > > >   
> > > > 
> > > > 
> > > > --- Anil Philip <[EMAIL PROTECTED]>
> > wrote:
> > > > 
> > > > > Thank you for replying.
> > > > > Is there an example I can look at for
> > transferring multiple files?
> > > > > I did a google search but was unable.
> > > > > thanks,
> > > > > Anil
> > > > > 
> > > > > --- "Anderson, Rob (Global Trade)"
> > > > > <[EMAIL PROTECTED]> wrote:
> > > > > 
> > > > > > The wildcard is not resolved in ant. This is
> > a common
> > > mistake as
> > > > > > people expect Ant to resolve wildcards as a
> > shell
> > > > would.
> > > > > > You would need to use
> > > > > > a fileset. 
> > > > > > 
> > > > > > -Rob Anderson
> > > > > > 
> > > > > > > -Original Message-
> > > > > > > From: Anil Philip
> > > > > > [mailto:[EMAIL PROTECTED]
> > > > > > > Sent: Wednesday, April 11, 2007 12:13 PM
> > > > > > > To: user@ant.apache.org
> > > > > > > Subject: help! how to send multiple files
> > to
> > > > > > remote machine? ant-jsch
> > > > > > > 
> > > > > > > Have you used scp to send the files from
> > an
> > > > > entire
> > > > > > folder? 
> > > > > > > Is there *another* way besides using
> > > > wildcards?
> > > > > > > I was sending it one file at a time and it
> > > > would
> > > > > > send two and
> > > > > > > then stop.
> > > > > > > I am trying to get it to send all the
> > files at
> > > > > > once.
> > > > > > > But when I specify
> > > > > > > D:\outbound\*
> > > > > > >  then I get
> > > > > > > 
> > > > > > >  java.io.FileNotFoundException:
> > D:\outbound\*
> > > > > (The
> > > > > > filename,
> > > > > > > directory name, or volume label syntax is
> > > > > > > incorrect)
> > > > > > > 
> > > > > > >at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:215)
> > > > > > > 
> > > > > > > -
> > > > > > > 
> > > > > > > thanks,
> > > > > > > 
> > > > > > > Anil Philip 
> > > > > > > 
> > > > > > > 
> > > > > > >void sendFiles(File outFolder)
> > throws
> > > > > > IOException {
> > > > > > > Scp sendFile = new Scp(); 
> > > > > > > Project proj = new Project();
> > > > > > > proj.init();
> > > > > > > sendFile.setProject(proj);
> > > > > > > sendFile.setPort(22);
> > > > > > > sendFile.setTrust(true);
> > > > > > >
> > sendFile.setFile(outFolder.getPath() +
> > > > > > File.separator + "*");
> > > > > > > String hostUri = remoteUserName +
> > "@"
> > > > +
> > > > > > remoteUrl +
> > > > > > > ":" + remotePath;
> > > > > > > sendFile.setTodir(hostUri);
> > > > > > >
> > sendFile.setKeyfile(remoteKeyFile);
> > > > > > > sendFile.setPassphrase("");
> > > > > > > logger.debug("about to SCP the
> > file "
> > > > +
> > > > > > > outFolder.getName() + "
> > > > > > > to Sprint");
> > > > > > > sendFile.execute();
> > > > > > > // send all files in the out dir 
> > > > > > > // Move the file to the done
> > directory
> > > > > > > File[] files =
> > outFolder.listFiles();
> > > > > > > for(File outFile:files) {
> > > > > > > copy(outFile,new
> > > > > > > File(sentFolder.getAbsolutePath() +
> > > > > File.separator
> > > > > > + 
> > > > > > > outFile.getName()));
> > > > > > > outFile.delete();
> > >

RE: I need to write a task for Tagging

2007-04-19 Thread Anderson, Rob (Global Trade)
http://ant.apache.org/manual/index.html

http://ant.apache.org/manual/CoreTasks/cvs.html

-Rob Anderson 

> -Original Message-
> From: alam [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 19, 2007 12:07 AM
> To: user@ant.apache.org
> Subject: RE: I need to write a task for Tagging
> 
> 
> Hey I am using Ant i need to write one task just like any 
> other task i need to write an ant task for TAG...
> 
> Gilles Scokart wrote:
> > 
> > I speak for for me, but no. Sorry I don't understand.
> > 
> > How/what would you do without ant?
> > 
> > Gilles
> > 
> >> -Original Message-
> >> From: alam [mailto:[EMAIL PROTECTED]
> >> Sent: jeudi 19 avril 2007 8:20
> >> To: user@ant.apache.org
> >> Subject: RE: I need to write a task for Tagging
> >> 
> >> 
> >> See i will try to explain you what i am trying to do..
> >>   I checkout two module say A and B now i am trying to tag these 
> >> module and i have to put the timestamp i am ok with time 
> stamp after 
> >> doing the build i need to tag these as a final i did build in my 
> >> local machine hope u understand what i am trying to do...
> >> 
> >> 
> >> 
> >> Regards
> >> Manauwar
> >> 
> >> Prashant Reddy-2 wrote:
> >> >
> >> > Try
> >> >
> >> > 
> >> >
> >> > You will get more help, if you are more specific about what you 
> >> > want to achieve.
> >> >
> >> > -Prashant
> >> >
> >> > On Wed, 2007-04-18 at 22:04 -0700, alam wrote:
> >> >> Hi as Prashant has given me some link regarding the cvs
> >> checkout,update
> >> >> that
> >> >> is fine but i want how to write a task "TAG" a module 
> can anyone 
> >> >> help
> >> me
> >> >> out..
> >> >>
> >> >>
> >> >> Rgards
> >> >> manauwar
> >> >>
> >> >> Prashant-4 wrote:
> >> >> >
> >> >> > I suppose you mean to tag a particular file in your version 
> >> >> > control system. The answer to your question would depend on 
> >> >> > which version control system you use.
> >> >> >
> >> >> > ANT has tasks for CVS, and Subversion
> >> >> >
> >> >> > Check out:
> >> >> > http://ant.apache.org/manual/CoreTasks/cvs.html
> >> >> >
> >> >> > I am not a Subversion user but quick googling provided this 
> >> >> > library
> >> :
> >> >> >
> >> >> > http://subclipse.tigris.org/svnant.html
> >> >> >
> >> >> > Hope this helps
> >> >> > -Prashant
> >> >> >
> >> >> > On Wed, 2007-04-18 at 05:13 -0700, alam wrote:
> >> >> >> Here   i mean that i did the build for a module and 
> now i would
> >> like
> >> >> to
> >> >> >> TAG
> >> >> >> it and put the timestamp i am able to write the 
> timestamp but 
> >> >> >> can
> >> you
> >> >> >> help
> >> >> >> me how should i write a task for TAG
> >> >> >>
> >> >> >> Gilles Scokart wrote:
> >> >> >> >
> >> >> >> > What do you mean by tagging a file?
> >> >> >> >
> >> >> >> > Gilles
> >> >> >> >
> >> >> >> >> -Original Message-
> >> >> >> >> From: alam [mailto:[EMAIL PROTECTED]
> >> >> >> >> Sent: mercredi 18 avril 2007 13:45
> >> >> >> >> To: user@ant.apache.org
> >> >> >> >> Subject: I need to write a task for Tagging
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> Hi i am new to ANT i need to write a task for 
> tagging a file 
> >> >> >> >> can
> >> >> >> anyone
> >> >> >> >> help
> >> >> >> >> me  how i proceed
> >> >> >> >>
> >> >> >> >> Regards
> >> >> >> >> Manauwar
> >> >> >> >> --
> >> >> >> >> View this message in context:
> >> >> http://www.nabble.com/I-need-to-write-a-
> >> >> >> >> task-for-Tagging-tf3600501.html#a10056980
> >> >> >> >> Sent from the Ant - Users mailing list archive at 
> Nabble.com.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> 
> --
> >> >> ---
> >> >> >> >> 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]
> >> >
> >> >
> >> >
> >> 
> >> --
> >> View this message in context: 
> >> http://www.nabble.com/I-need-to-write-a-
> >> task-for-Tagging-tf3600501.html#a10072393
> >> 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: tag inside some other tag(cvs)

2007-04-19 Thread prasad kumar
hi,
   
  i know,it is possible to create the child tag(build_xxx) inside some other 
tag(HEAD) using win cvs to avoid  version of a file with some other version of 
a file.
   
  for ex i will create the child tag as follows:
  remote---> create a tag by  module-->tag name-->change from uncheck to check 
"Overwrite existing existing tags with the same name"-->click ok
   
   
  then it will create the new tag(for ex:build_xxx,to avoid  version of a file 
with some other version of a file.) in 'versions',based on this tag name i need 
take the fresh checkout from 'Head' tag ,zip the ear file and some other files,
   
  this task is it possible with ant?if it is possible how.please exaplain with 
script,
   
  if any person know,respond that's great appreciation
   
  thanks,
  prasad

  Prasad,

How would you do what you are trying to do *without* ant? In other
words, how would you do this using just the cvs command line client? If
you can post the commands you would use (copy and paste them from your
command line window) maybe it would clear things up for us.

/t 

>-Original Message-
>From: Geoffrey Mitchell [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, April 19, 2007 5:25 PM
>To: Ant Users List
>Subject: Re: tag inside some other tag(cvs)
>
>The question is not "can ant do that?". The question is "can cvs do 
>that?". And the answer is "Huh?". What do you mean by a tag 
>inside of 
>another tag? One version of a file can have multiple tags, 
>but there is 
>no sense of hierarchy to them.
>
>However you slice it, this is totally off topic for this list. Try 
>reading a book on cvs.
>
>prasad kumar wrote:
>
>>Hi,
>> 
>> i have to create one more tag(for ex: child tag of HEAD 
>tag(cvs)) inside some other tag(for ex:inside HEAD tag(cvs)) 
>ofter a successfull build,is it possible with ant to create 
>one more tag inside some other tag.if then,how, please tell me
>> 
>> Thanks,
>> prasad

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



   
-
 Check out what you're missing if you're not on Yahoo! Messenger 

Re: Settting environment variables

2007-04-19 Thread Ninju Bohra
Hello,

By the time ANT starts, the PATH and INCLUDE environment variables values are 
set (by the ant.bat or OS command script) and can not be altered.

However if one you target needs to start seperate process (, , 
, etc...) you can control the value of the enviroment variables that the 
child process will have...use the  sub element to correct that.

Hope that make sense

Ninju
 


- Original Message 
From: query <[EMAIL PROTECTED]>
To: ant 
Sent: Thursday, April 19, 2007 9:25:39 AM
Subject: Settting environment variables


 

Hi,

I am having a set of ANT build files. I want to change "Path" and "include" 
environment variables only in build file.
I tried the following options to reset "include" variable in the build file.

 
1.
 
  
  
2.

3.

4.


When I tried to echo "include" variable in the same build file, it is still 
showing the default old settings.

Is there any other way to modify the environment variables only for some 
instance and not for other?

__
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: tag inside some other tag(cvs)

2007-04-19 Thread prasad kumar
hi,
   
  u r saying One version of a file can have multiple tags.this maltiple tags 
can we create with ant
   
  regards,
  prasad

prasad kumar <[EMAIL PROTECTED]> wrote:
hi,
   
  i know,it is possible to create the child tag(build_xxx) inside some other 
tag(HEAD) using win cvs to avoid  version of a file with some other version of 
a file.
   
  for ex i will create the child tag as follows:
  remote---> create a tag by  module-->tag name-->change from uncheck to check 
"Overwrite existing existing tags with the same name"-->click ok
   
   
  then it will create the new tag(for ex:build_xxx,to avoid  version of a file 
with some other version of a file.) in 'versions',based on this tag name i need 
take the fresh checkout from 'Head' tag ,zip the ear file and some other files,
   
  this task is it possible with ant?if it is possible how.please exaplain with 
script,
   
  if any person know,respond that's great appreciation
   
  thanks,
  prasad

  Prasad,

How would you do what you are trying to do *without* ant? In other
words, how would you do this using just the cvs command line client? If
you can post the commands you would use (copy and paste them from your
command line window) maybe it would clear things up for us.

/t 

>-Original Message-
>From: Geoffrey Mitchell [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, April 19, 2007 5:25 PM
>To: Ant Users List
>Subject: Re: tag inside some other tag(cvs)
>
>The question is not "can ant do that?". The question is "can cvs do 
>that?". And the answer is "Huh?". What do you mean by a tag 
>inside of 
>another tag? One version of a file can have multiple tags, 
>but there is 
>no sense of hierarchy to them.
>
>However you slice it, this is totally off topic for this list. Try 
>reading a book on cvs.
>
>prasad kumar wrote:
>
>>Hi,
>> 
>> i have to create one more tag(for ex: child tag of HEAD 
>tag(cvs)) inside some other tag(for ex:inside HEAD tag(cvs)) 
>ofter a successfull build,is it possible with ant to create 
>one more tag inside some other tag.if then,how, please tell me
>> 
>> Thanks,
>> prasad

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



-
  Check out what you're missing if you're not on Yahoo! Messenger 

   
-
 Check out what you're missing if you're not on Yahoo! Messenger 

RE: tag inside some other tag(cvs)

2007-04-19 Thread RADEMAKERS Tanguy
Hello Prasad,

OK, i have checked the WinCvs site, and it seems that WinCvs has a
window (they call it the "browser status window") that shows you which
cvs calls are being made as you use the tool.

In this picture:

http://www.wincvs.org/wincvs_app.png

it is the window at the bottom of the screen showing the text "cvs -z9
-q" etc etc etc.

Please carry out the *entire* series of cvs operations you wish to
automate with ant (this means start with a checkout), and copy and paste
the contents of this window (as text!) into a mail *directly to me* at
this address. If i can help you, i will, and i will copy the list on the
solution.

I am not promising anything! But i will try.

Regs,
/t

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



Re: help! how to send multiple files to remote machine? ant-jsch

2007-04-19 Thread Robert Clark
On Thursday April 19, 2007, Anil Philip <[EMAIL PROTECTED]> 
wrote:
> Do you mean jsch API?
> (there is no jscp api)





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



Re: tag inside some other tag(cvs)

2007-04-19 Thread Shankar S

Prasad,
Why don't you just do this?



 
 

   

 


If you are not clear with this then read about CVS tags by doing a quick
Google.

On 4/20/07, prasad kumar <[EMAIL PROTECTED]> wrote:


hi Tanguy,

  http://www.wincvs.org/wincvs_app.png

  from what ur showing in the picture,let us assume 'cvsgui' is module
name in HEAD tag.then i updated the 'cvsgui' module with clean copy option
from HEAD tag.ofter getting clean copy of 'cvsgui',i create the tag(let us
assume build_xxx) as follows:

  remote---> create a tag by  module-->tag name-->change from uncheck to
check "Overwrite existing existing tags with the same name"-->click ok

  why iam creating because to maintain all version of files in the
particular tag(build_xxx).with cvs it is possible 'One version of a file can
have multiple tags'
  like above.

  then come to ant,with ant i have written code to take fresh checkout

  
  


  but from above it  will take fresh checkout with existing(already
created) tag.i.e from HEAD.

  but i require to maintain all version of files in the particular
tag(build_xxx) ,ofter creating the this tag i have to take fresh checkout
from this tag(build_xxx).

  is it possible with ant to create new tag to maintain all version of
files in the particular tag(build_xxx)?

  i think there is no option in ant to create new tag,i chekced the ant
docs no option was available.

  if no option is there in ant,please respond becuase i need to give the
report to my superiors as saying "there is no option in ant to create new
tag to maintain all version of files in the particular tag(build_xxx)?"

  if any person knows,respond that's a great appreciation

  thanks,

  prasad





RADEMAKERS Tanguy <[EMAIL PROTECTED]> wrote:
  Hello Prasad,

OK, i have checked the WinCvs site, and it seems that WinCvs has a
window (they call it the "browser status window") that shows you which
cvs calls are being made as you use the tool.

In this picture:

http://www.wincvs.org/wincvs_app.png

it is the window at the bottom of the screen showing the text "cvs -z9
-q" etc etc etc.

Please carry out the *entire* series of cvs operations you wish to
automate with ant (this means start with a checkout), and copy and paste
the contents of this window (as text!) into a mail *directly to me* at
this address. If i can help you, i will, and i will copy the list on the
solution.

I am not promising anything! But i will try.

Regs,
/t

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




-
Check out what you're missing if you're not on Yahoo! Messenger


zip included files

2007-04-19 Thread prasad kumar
   hi all,
  if iam using like below
  
  
  

  it is zipping but it is not not including all the required files.it is 
including only rtf,ear files.it is not including pdf,xml,properties files
  
  if iam using 
  
  
  

  it is giving error as "problem opening 'srcfile".
   
  
  (just i changed dir to src).
  
  i checked the folder properties,it is there in "read only" checked mode i 
changed to unchecked mode,but ofter some time if iam seeing folder properties 
it is in read only cheked mode.how can i get the ownership on that particular 
folder.iam using windows xp professional o/s.
  

   
  My doubt is the problem with folder or ant code?
  

  If any person knows to solve this,that's a great appreciation
   
   
  thanks,
   
  prsasad

   
-
 Check out what you're missing if you're not on Yahoo! Messenger 

RE: tag inside some other tag(cvs)

2007-04-19 Thread prasad kumar
hi Tanguy,
   
  http://www.wincvs.org/wincvs_app.png

  from what ur showing in the picture,let us assume 'cvsgui' is module name in 
HEAD tag.then i updated the 'cvsgui' module with clean copy option from HEAD 
tag.ofter getting clean copy of 'cvsgui',i create the tag(let us assume 
build_xxx) as follows:
   
  remote---> create a tag by  module-->tag name-->change from uncheck to check 
"Overwrite existing existing tags with the same name"-->click ok
   
  why iam creating because to maintain all version of files in the particular 
tag(build_xxx).with cvs it is possible 'One version of a file can have multiple 
tags'
  like above.
   
  then come to ant,with ant i have written code to take fresh checkout
   
  
  
 
   
  but from above it  will take fresh checkout with existing(already created) 
tag.i.e from HEAD.
   
  but i require to maintain all version of files in the particular 
tag(build_xxx) ,ofter creating the this tag i have to take fresh checkout from 
this tag(build_xxx).
   
  is it possible with ant to create new tag to maintain all version of files in 
the particular tag(build_xxx)?
   
  i think there is no option in ant to create new tag,i chekced the ant docs no 
option was available.
   
  if no option is there in ant,please respond becuase i need to give the report 
to my superiors as saying "there is no option in ant to create new tag to 
maintain all version of files in the particular tag(build_xxx)?" 
   
  if any person knows,respond that's a great appreciation
   
  thanks,
   
  prasad
   
   
   
   

RADEMAKERS Tanguy <[EMAIL PROTECTED]> wrote:
  Hello Prasad,

OK, i have checked the WinCvs site, and it seems that WinCvs has a
window (they call it the "browser status window") that shows you which
cvs calls are being made as you use the tool.

In this picture:

http://www.wincvs.org/wincvs_app.png

it is the window at the bottom of the screen showing the text "cvs -z9
-q" etc etc etc.

Please carry out the *entire* series of cvs operations you wish to
automate with ant (this means start with a checkout), and copy and paste
the contents of this window (as text!) into a mail *directly to me* at
this address. If i can help you, i will, and i will copy the list on the
solution.

I am not promising anything! But i will try.

Regs,
/t

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



   
-
 Check out what you're missing if you're not on Yahoo! Messenger 

Re: Re: Settting environment variables

2007-04-19 Thread query
  When I tried to use  in  task, it build compilation is 
failing with the following error.

 javac doesn't support the nested "sysproperty" element.


On Thu, 19 Apr 2007 Ninju Bohra wrote :
>Hello,
>
>By the time ANT starts, the PATH and INCLUDE environment variables values are 
>set (by the ant.bat or OS command script) and can not be altered.
>
>However if one you target needs to start seperate process (, , 
>, etc...) you can control the value of the enviroment variables that the 
>child process will have...use the  sub element to correct that.
>
>Hope that make sense
>
>Ninju
>
>
>
>- Original Message 
> From: query <[EMAIL PROTECTED]>
>To: ant 
>Sent: Thursday, April 19, 2007 9:25:39 AM
>Subject: Settting environment variables
>
>
>
>
>Hi,
>
>I am having a set of ANT build files. I want to change "Path" and "include" 
>environment variables only in build file.
>I tried the following options to reset "include" variable in the build file.
>
>
>1.
>  
>   
>
>2.
>
>3.
>
>4.
>
>
>When I tried to echo "include" variable in the same build file, it is still 
>showing the default old settings.
>
>Is there any other way to modify the environment variables only for some 
>instance and not for other?
>
>__
>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: Re: Settting environment variables

2007-04-19 Thread query
  When I tried to use  in  and  task, build 
compilation is failing with the following errors.

javac doesn't support the nested "sysproperty" element.

exec doesn't support the nested "sysproperty" element.

It looks like that element is supported only with .
But I want to set env variables for   and tasks. Can anyone help 
me ???


On Thu, 19 Apr 2007 Ninju Bohra wrote :
>Hello,
>
>By the time ANT starts, the PATH and INCLUDE environment variables values are 
>set (by the ant.bat or OS command script) and can not be altered.
>
>However if one you target needs to start seperate process (, , 
>, etc...) you can control the value of the enviroment variables that the 
>child process will have...use the  sub element to correct that.
>
>Hope that make sense
>
>Ninju
>
>
>
>- Original Message 
> From: query <[EMAIL PROTECTED]>
>To: ant 
>Sent: Thursday, April 19, 2007 9:25:39 AM
>Subject: Settting environment variables
>
>
>
>
>Hi,
>
>I am having a set of ANT build files. I want to change "Path" and "include" 
>environment variables only in build file.
>I tried the following options to reset "include" variable in the build file.
>
>
>1.
>  
>   
>
>2.
>
>3.
>
>4.
>
>
>When I tried to echo "include" variable in the same build file, it is still 
>showing the default old settings.
>
>Is there any other way to modify the environment variables only for some 
>instance and not for other?
>
>__
>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: tag inside some other tag(cvs)

2007-04-19 Thread prasad kumar
hi shankar,
   
  thanks for u r help.but while creating the tag it is saying that as 
   
   
  "[cvs] cvs [rtag aborted]: tag  must not contain the characters `$,.:;@'"
   
   iam using windows xp professional o/s and wincvs,eclipse
  if u have already resolved this issue,please give me the reply..
   
  iam waiting for u r reply
   
  thanks,
   
  prasad
   
   
  Shankar S <[EMAIL PROTECTED]> wrote:
  Prasad,
Why don't you just do this?






cvstag.name} ${module.name}" />




If you are not clear with this then read about CVS tags by doing a quick
Google.

On 4/20/07, prasad kumar 
wrote:
>
> hi Tanguy,
>
> http://www.wincvs.org/wincvs_app.png
>
> from what ur showing in the picture,let us assume 'cvsgui' is module
> name in HEAD tag.then i updated the 'cvsgui' module with clean copy option
> from HEAD tag.ofter getting clean copy of 'cvsgui',i create the tag(let us
> assume build_xxx) as follows:
>
> remote---> create a tag by module-->tag name-->change from uncheck to
> check "Overwrite existing existing tags with the same name"-->click ok
>
> why iam creating because to maintain all version of files in the
> particular tag(build_xxx).with cvs it is possible 'One version of a file can
> have multiple tags'
> like above.
>
> then come to ant,with ant i have written code to take fresh checkout
>
> 
> > cvs.package}" command="up -d -P" cvsroot="${cvs.repository}" />
> 
>
> but from above it will take fresh checkout with existing(already
> created) tag.i.e from HEAD.
>
> but i require to maintain all version of files in the particular
> tag(build_xxx) ,ofter creating the this tag i have to take fresh checkout
> from this tag(build_xxx).
>
> is it possible with ant to create new tag to maintain all version of
> files in the particular tag(build_xxx)?
>
> i think there is no option in ant to create new tag,i chekced the ant
> docs no option was available.
>
> if no option is there in ant,please respond becuase i need to give the
> report to my superiors as saying "there is no option in ant to create new
> tag to maintain all version of files in the particular tag(build_xxx)?"
>
> if any person knows,respond that's a great appreciation
>
> thanks,
>
> prasad
>
>
>
>
>
> RADEMAKERS Tanguy wrote:
> Hello Prasad,
>
> OK, i have checked the WinCvs site, and it seems that WinCvs has a
> window (they call it the "browser status window") that shows you which
> cvs calls are being made as you use the tool.
>
> In this picture:
>
> http://www.wincvs.org/wincvs_app.png
>
> it is the window at the bottom of the screen showing the text "cvs -z9
> -q" etc etc etc.
>
> Please carry out the *entire* series of cvs operations you wish to
> automate with ant (this means start with a checkout), and copy and paste
> the contents of this window (as text!) into a mail *directly to me* at
> this address. If i can help you, i will, and i will copy the list on the
> solution.
>
> I am not promising anything! But i will try.
>
> Regs,
> /t
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> Check out what you're missing if you're not on Yahoo! Messenger


   
-
 Check out what you're missing if you're not on Yahoo! Messenger