unjar/unzip makes expanded folder read-only
Hi all, I have a war file which I need to: 1. expand 2. replace a file in the expanded war 3. war it up again (without going into too much detail, no I can't do it at the start when I first war up the files) I'm using Windows. My problem is that when the war is expanded, which creates a folder, that folder is set to have all the folders within to be read-only (see screenshot here: http://nauke0.googlepages.com/folderproperties.png) Because of this, I cannot replace any file in the expanded war (I.e. it keeps saying Access Denied). I have tried a number of things now like: 1. 2. same as #1 except took out the mkdir since the unjar task creates the dest directory for me anyway. 3. same as #1 except used unzip instead of unjar The funny thing is someone else also on Windows is able to simply unjar, copy file, jar up again (ie exactly like #1 but without the
Re: Changing port number of a server(selenium-server.jar) through ant?
Thanks Andy, It works.:clap: Andy Stevens-2 wrote: > > 2008/7/9 rahulrocks <[EMAIL PROTECTED]>: >> >> I have changed the port number of selenium server in command line like >> this >> java -jar selenium-server.jar -port 4445 >> >> How to change the port number of a server(selenium-server.jar) through >> ant >> script? >> >> >> >> >> >> >> >> Please help. > > I've not used Selenium myself, but based on your java command, have > you tried simply adding a second arg element > > ? > > > Andy. > -- > http://pseudoq.sourceforge.net/ Open source Sudoku application > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Changing-port-number-of-a-server%28selenium-server.jar%29-through-ant--tp18359971p18377612.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to have Dynamic Propert in ant
Hello, interesting problem. No dynamic properties. Following works: ${NOW} waiting 5 seconds ${THEN} Cheers, André sukanya schrieb: Hi, Here is the problem I am now facing: ${TSTAMP} ant.version: '${ant.version}' ant.home: '${ant.home}' java.version: '${java.version}' ${TSTAMP} Here the time values are added to a file. Where the file has the same time value twice. But i need to have different time values with a single element and property. How property values can be changed dynamically? Appreciate your suggestion to solve this problem. Thanks, Sukanya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to have Dynamic Propert in ant
Properties are immutable in Ant. In your example, even if properties were mutable, the timestamp would not be recomputed - you'd have to re-execute the tstamp task. The only way you can have this recomputation is by using a second property as someone else has responded... On Wed, 9 Jul 2008, sukanya wrote: Hi, Here is the problem I am now facing: ${TSTAMP} ant.version: '${ant.version}' ant.home: '${ant.home}' java.version: '${java.version}' ${TSTAMP} Here the time values are added to a file. Where the file has the same time value twice. But i need to have different time values with a single element and property. How property values can be changed dynamically? Appreciate your suggestion to solve this problem. Thanks, Sukanya -- View this message in context: http://www.nabble.com/How-to-have-Dynamic-Propert-in-ant-tp18376782p18376782.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ant task to find in files
Hi there, I'd like to seach the files in a fileset and fail my build if any file contains a certain string. Is there any functionality in Ant that can do this? I've seen the Replace task, but all I want is a Find task. It seems such an obvious emmision, that I'm sure I just don't know what to look for. Thanks, Manish
Re: How to have Dynamic Propert in ant
Or use variables from ant-contrib... Andrew. 2008/7/10 Scot P. Floess <[EMAIL PROTECTED]>: > Properties are immutable in Ant. In your example, even if properties were > mutable, the timestamp would not be recomputed - you'd have to re-execute > the tstamp task. The only way you can have this recomputation is by using a > second property as someone else has responded... > > On Wed, 9 Jul 2008, sukanya wrote: > >> >> Hi, >> >> Here is the problem I am now facing: >> >> >> >> >> >> >> >>${TSTAMP} >> >> ant.version: '${ant.version}' >> ant.home: '${ant.home}' >> java.version: '${java.version}' >> ${TSTAMP} >> >> >> >> Here the time values are added to a file. >> Where the file has the same time value twice. But i need to have different >> time values with a single element and property. How property >> values >> can be changed dynamically? >> >> Appreciate your suggestion to solve this problem. >> >> Thanks, >> Sukanya >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-have-Dynamic-Propert-in-ant-tp18376782p18376782.html >> Sent from the Ant - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > Scot P. Floess > 27 Lake Royale > Louisburg, NC 27549 > > 252-478-8087 (Home) > 919-754-4592 (Work) > > Chief Architect JPlate http://sourceforge.net/projects/jplate > Chief Architect JavaPIM http://sourceforge.net/projects/javapim > > Architect Keros http://sourceforge.net/projects/keros > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to have Dynamic Propert in ant
True, however, unless the timestamp is recomputed it won't matter... Meaning the timestamp will be the same for each use of the property containing the initially computed timestamp. On Thu, 10 Jul 2008, Andrew Clegg wrote: Or use variables from ant-contrib... Andrew. 2008/7/10 Scot P. Floess <[EMAIL PROTECTED]>: Properties are immutable in Ant. In your example, even if properties were mutable, the timestamp would not be recomputed - you'd have to re-execute the tstamp task. The only way you can have this recomputation is by using a second property as someone else has responded... On Wed, 9 Jul 2008, sukanya wrote: Hi, Here is the problem I am now facing: ${TSTAMP} ant.version: '${ant.version}' ant.home: '${ant.home}' java.version: '${java.version}' ${TSTAMP} Here the time values are added to a file. Where the file has the same time value twice. But i need to have different time values with a single element and property. How property values can be changed dynamically? Appreciate your suggestion to solve this problem. Thanks, Sukanya -- View this message in context: http://www.nabble.com/How-to-have-Dynamic-Propert-in-ant-tp18376782p18376782.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Ant task to find in files
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2008 3:20 PM To: user@ant.apache.org Subject: Ant task to find in files /* Hi there, I'd like to seach the files in a fileset and fail my build if any file contains a certain string. Is there any functionality in Ant that can do this? I've seen the Replace task, but all I want is a Find task. */ maybe something like = Oops, found ... Regards, Gilbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compiling JSP files using ANT?
Hi, I'm using Ant 1.6 and WL 9.2.2. Are there directives I can add to my build.xml file that will allow me to compile JSPs? Any suggestions you have are greatly appreciated, - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Continu exec task, while leaving ant
Thanks! The -task works now.. f.i. However, when using it with the -task, I get no error and it does nothing (Is there a way to solve it?) [PS: the echo message is also not displaying. Still I get the BUILD SUCCESFULL back]: Rebhan, Gilbert wrote: > > > > > -Original Message- > From: jantje [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 10, 2008 12:06 AM > To: user@ant.apache.org > Subject: Re: Continu exec task, while leaving ant > > /* > Thanks. > > But I have problems installing ant-contrib, from the website: > grab the ant-contrib module from CVS > > There is no CVS, when clicking on it. Then I have found > "ant-contrib-0.3.jar" this somewhere on the internet. I have placed this > in > /usr/local/apache-ant/lib/ > > [ ... ] > > */ > > Gotcha :-) > Wrong version, 0.3 is rather old, but still mentioned on the ant contrib > site. > > /* > Copyright (c) 2002-2003 Ant-Contrib Project. All rights Reserved. > */ > > no comment ;-) > > > Grab version 1.0b2 or 1.0b3 from [1] and use the antlib.xml, like > that = > > when antcontrib.jar in %ANT_HOME%/lib > > > > > or located elsewhere > > > > > > > [1] = http://sourceforge.net/project/showfiles.php?group_id=36177 > > > Regards, Gilbert > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- View this message in context: http://www.nabble.com/Continu-exec-task%2C-while-leaving-ant-tp18315876p18388636.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to have Dynamic Propert in ant
Use (the proper way) The following test script demonstrates how antcall can take parameters and that the timestamp is recomputed. --glenn ${touch.time}
Re: Compiling JSP files using ANT?
[EMAIL PROTECTED] wrote: Hi, I'm using Ant 1.6 and WL 9.2.2. Are there directives I can add to my build.xml file that will allow me to compile JSPs? Any suggestions you have are greatly appreciated, - Dave You need to use a JSP compiler specific to your application server -and the specific version. There may be one for WebLogic -look in the docs. The other trick is just to test all the pages you've created after deploying them, by hitting them all with tests; HtmlUnit is one JUnit based test framework for doing this. It saves time -you were going to do those tests anyway, after all :) -steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
causing memory issue
Hi I am relatively new to ANT On solaris (on XP this works fine). the following script throws a memory exception (attached) If I take our the line it works fine. What could be the problem ? Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: causing memory issue
Just curious, from the command line...prior to executing ant against your build.xml (under Solaris), what does env yield? Anyway, you might try using the -diagnose command line option to ant - it may help. Although, I've not experienced what you mention below :( On Thu, 10 Jul 2008, Matt wrote: Hi I am relatively new to ANT On solaris (on XP this works fine). the following script throws a memory exception (attached) If I take our the line it works fine. What could be the problem ? Matt Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: causing memory issue
env does not yield much there are 29 lines and not very big. Attaching diagnostics. Please let me know if you see something suspicious Matt From: "Scot P. Floess" <[EMAIL PROTECTED]> Sent: Thursday, July 10, 2008 3:37 PM To: Ant Users List , [EMAIL PROTECTED] Subject: Re: causing memory issue Just curious, from the command line...prior to executing ant against your build.xml (under Solaris), what does env yield? Anyway, you might try using the -diagnose command line option to ant - it may help. Although, I've not experienced what you mention below :( On Thu, 10 Jul 2008, Matt wrote: > Hi > > I am relatively new to ANT > > On solaris (on XP this works fine). the following script throws a memory > exception (attached) > > > default="go" > > > > > > > > > If I take our the line > > it works fine. > > What could be the problem ? > > Matt > > > > Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: causing memory issue
Sorry Folks, Some one was eating up all the swap space on that server. It was not my issue sorry about the false alarm thanks Matt From: "Matt" <[EMAIL PROTECTED]> Sent: Thursday, July 10, 2008 3:47 PM To: user@ant.apache.org Subject: Re: causing memory issue env does not yield much there are 29 lines and not very big. Attaching diagnostics. Please let me know if you see something suspicious Matt From: "Scot P. Floess" <[EMAIL PROTECTED]> Sent: Thursday, July 10, 2008 3:37 PM To: Ant Users List , [EMAIL PROTECTED] Subject: Re: causing memory issue Just curious, from the command line...prior to executing ant against your build.xml (under Solaris), what does env yield? Anyway, you might try using the -diagnose command line option to ant - it may help. Although, I've not experienced what you mention below :( On Thu, 10 Jul 2008, Matt wrote: > Hi > > I am relatively new to ANT > > On solaris (on XP this works fine). the following script throws a memory > exception (attached) > > > default="go" > > > > > > > > > If I take our the line > > it works fine. > > What could be the problem ? > > Matt > > > > Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: causing memory issue
That's funny :) Been there ;) On Thu, 10 Jul 2008, Matt wrote: Sorry Folks, Some one was eating up all the swap space on that server. It was not my issue sorry about the false alarm thanks Matt From: "Matt" <[EMAIL PROTECTED]> Sent: Thursday, July 10, 2008 3:47 PM To: user@ant.apache.org Subject: Re: causing memory issue env does not yield much there are 29 lines and not very big. Attaching diagnostics. Please let me know if you see something suspicious Matt From: "Scot P. Floess" <[EMAIL PROTECTED]> Sent: Thursday, July 10, 2008 3:37 PM To: Ant Users List , [EMAIL PROTECTED] Subject: Re: causing memory issue Just curious, from the command line...prior to executing ant against your build.xml (under Solaris), what does env yield? Anyway, you might try using the -diagnose command line option to ant - it may help. Although, I've not experienced what you mention below :( On Thu, 10 Jul 2008, Matt wrote: Hi I am relatively new to ANT On solaris (on XP this works fine). the following script throws a memory exception (attached) default="go" > If I take our the line it works fine. What could be the problem ? Matt Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to have Dynamic Propert in ant
Thank you all, I can able make it by sukanya glenn opdycke-hansen wrote: > > Use (the proper way) > > The following test script demonstrates how antcall can take parameters and > that the timestamp is recomputed. > > --glenn > > > > > > > > > > > > > > > > > > > > > > ${touch.time} > > > > > > -- View this message in context: http://www.nabble.com/How-to-set-Dynamic-Property-in-ant-tp18376782p18396429.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Continu exec task, while leaving ant
-Original Message- From: jantje [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2008 8:06 PM To: user@ant.apache.org Subject: RE: Continu exec task, while leaving ant /* Thanks! The -task works now.. f.i. However, when using it with the -task, I get no error and it does nothing (Is there a way to solve it?) [PS: the echo message is also not displaying. Still I get the BUILD SUCCESFULL back]: */ currently on windows here, f.e. works fine. try = or ... ... means put all on one line with arg value || arg line ... if that doesn't work either, it's most likely a problem with user rights Is the bash your login shell ? Did you try the exec a shell ? Regards, Gilbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]