Re: Two pass compile for instrumented code
On Tue, Apr 13, 2010 at 7:51 PM, Antoine Levy-Lambert wrote: > > Original-Nachricht > > Datum: Tue, 13 Apr 2010 17:37:37 +0100 > > Von: Greg Roodt > > An: Ant Users List > > Betreff: Two pass compile for instrumented code > > > Hi > > > > I have an Ant build that consists of the basic compile, test, package, > > report phases. > > The report phase is a bit slow (Clover particularly) for developers > > looking > > for quick feedback on tests. Developers dont need Clover reports, > > Checkstyle > > etc etc every time and we mainly prefer these to be generated on our CI > > server. This would be easy except for the requirement that for some > > reports > > (Clover again) the compiled code needs to be instrumented. > > > > Basically, Im looking for a 2 pass compile. The first compile is a > regular > > Java compile. The second is a compile with Clover instrumentation > enabled. > > These would need to compile to different destination directories, lets > > call > > them bin and bin-clover. > > > > During the compile phase, if we are generating a report, we need to > > compile > > to both bin and bin-clover. > Do you actually need to compile to both ? Or do you compile to bin, then > instrument the classes from bin into bin-clover ? > I've taken another look at the Clover Ant tasks and there are basically 2 options. 1. Compile code with Clover compiler enabled, this instruments on the fly and then hands off to regular compiler. Currently what Im doing. 2. Instrument source code and then compile manually. So I could instrument src to src-clover and compile src-clover to bin-clover I guess. > > > When not generating reports, only to bin. > > During the test phase, if we are generating a report, we need to run the > > tests against bin-clover. When not generating reports, we need to run the > > tests against bin. > > I would do something like this > > > > > > > > > > > > Thanks for the suggestion. Im going to see if I can wire something like this into my script. I'll report back what I uncover. > > > Regards, > > Antoine > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > >
AW: AW: Using anteater in ant
No idea. Have you asked on the anteater user list? Jan > -Ursprüngliche Nachricht- > Von: Pooja Ganapathi [mailto:pooja.ganapa...@gmail.com] > Gesendet: Mittwoch, 14. April 2010 07:09 > An: user@ant.apache.org > Betreff: Re: AW: Using anteater in ant > > > hi, > > here is the URL --> > http://aft.sourceforge.net/manual/Test%20tasks.html#elem:responseCode > > If you just scroll down, you might see the code like this : > > ** > > This is useful in conjunction with a property setter: > > > > > > > > > > > > We were redirected... > > > > *** > > As with using , outside , the build doesn't > recognise it. > Say that the build fails in the match.. and thus 'var' is not > assigned. It > doesn't go to the if statement et all..but directly..it fails. > > I have put the under and thus, as soon as it > encounters error, it goes to and fails out. > > -Pooja > > > Jan.Materne wrote: > > > >> in match,which i could use later with condition. The > >> anteater manual page (test tasks) decribes the same, > > > > I havent found that on http://aft.sourceforge.net/ could > you post the > > url? > > > > > > > >> > >> > >> ${var1} > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> The same code example as been given in the manuals too. > >> however, when ran it > >> gave the below error. > >> "The task doesn't support the nested "if" element." > >> > >> Any help please? > > > > > > Maybe the if/then/else should be outside of and done > > external tasks? > > > > > > > > > > > > > > > > > > > > > > > Jan > > > > > >> > >> Regards, > >> Pooja > >> > >> > >> > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/Using-anteater-in-ant-tp28215650p28215650.html > >> Sent from the Ant - Users mailing list archive at Nabble.com. > >> > >> > >> > - > >> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > >> For additional commands, e-mail: user-h...@ant.apache.org > >> > >> > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > > For additional commands, e-mail: user-h...@ant.apache.org > > > > > > > > -- > View this message in context: > http://old.nabble.com/Using-anteater-in-ant-tp28215650p28238396.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Calling CYGWIN from ANT via EXEC
It's actually much easier to use CYGWIN from Ant than stated in the documentation with the task. Here is an example of using Ant to run a shell script via CYGWIN (be sure the shell script is formatted for unix): Note that all arguments to the script in this case must be on the same as the script file or they won't show up as args to the script, but rather, args to bash. I haven't figured out how to send an argument with spaces in it, but I'm sure you Ant guru's could tell me. Any help there? I tried 'myScript.sh "argument with spaces" arg2', but that didn't work. CYGWIN wants spaces escaped. Thanks, Eric
Re: Looping number of times
Thank you Jan It did work with antconrib 1.0b3 I just have another question, is there a way to override jar in ant lib directory For eg, in our ant.home/lib directory it has ant-contrib-0.3.jar, and the same installation is being used by different team and they're not ready to change the ant-contrib jar, but i want to use this new jar i tried the following way, but still its not taking the new ant contrib ${ant.version} i is @{i} got the error like Trying to override old definition of task antlib:net.sf.antcontrib:for [echo] Apache Ant version 1.7.1 compiled on June 27 2008 Trying to override old definition of task antlib:net.sf.antcontrib:for BUILD FAILED C:\my-prj\/test.xml:4: ac:for doesn't support the "end" attribute On Tue, Apr 13, 2010 at 11:42 PM, wrote: > Here is the my working example : > > > ${ant.version} > > > i is @{i} > > > > > Buildfile: build.xml > [echo] Apache Ant version 1.7.0 compiled on December 13 2006 > [echo] i is 0 > [echo] i is 1 > [echo] i is 2 > [echo] i is 3 > [echo] i is 4 > [echo] i is 5 > [echo] i is 6 > [echo] i is 7 > [echo] i is 8 > [echo] i is 9 > [echo] i is 10 > > BUILD SUCCESSFUL > > Tried with ant-contrib-1.0b3.jar > > > Jan > > > > -Ursprüngliche Nachricht- > > Von: Jan [mailto:raghure...@gmail.com] > > Gesendet: Dienstag, 13. April 2010 21:38 > > An: Ant Users List > > Betreff: Re: Looping number of times > > > > Hi Jan > > > > is this ant- conrib stuff really works? > > > > coz i'm getting the error ---> The type doesn't > > support the "end" > > attribute. > > > > On Tue, Apr 13, 2010 at 2:05 AM, wrote: > > > > > or directly from the ac-manual > > > > > > The following example loops from one to ten. > > > > > > > > > > > >i is @{i} > > > > > > > > > > > > > > > Jan > > > > > > > -Ursprüngliche Nachricht- > > > > Von: Jan [mailto:raghure...@gmail.com] > > > > Gesendet: Montag, 12. April 2010 21:08 > > > > An: Ant Users List > > > > Betreff: Looping number of times > > > > > > > > Hi All, > > > > > > > > Is there any task available to loop for number of times ? > > > > > > > > I know we can use ant-contrib for loop for the comma > > > > seperated list, instead > > > > of it i want to mention loop it for 10 times > > > > > > > > Any one any idea? > > > > > > > > > > > > - > > > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > > > For additional commands, e-mail: user-h...@ant.apache.org > > > > > > > > > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > >
Re: Calling CYGWIN from ANT via EXEC
I figured out the space issue, you can single quote the args successfully. On Apr 14, 2010, at 9:26 AM, Eric Fetzer wrote: It's actually much easier to use CYGWIN from Ant than stated in the documentation with the task. Here is an example of using Ant to run a shell script via CYGWIN (be sure the shell script is formatted for unix): Note that all arguments to the script in this case must be on the same as the script file or they won't show up as args to the script, but rather, args to bash. I haven't figured out how to send an argument with spaces in it, but I'm sure you Ant guru's could tell me. Any help there? I tried 'myScript.sh "argument with spaces" arg2', but that didn't work. CYGWIN wants spaces escaped. Thanks, Eric - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
RE: Calling CYGWIN from ANT via EXEC
i believe the majority of SGML parsers will parse better known as non-braking space character as 'space character' you can also try the old hex 20 e.g. if its Windoze folder name try the '8.3 name' C:\Documents and Settings becomes C:\DOCUME~1 dumb question but i have to ask why not launch cygwin beforehand and run your ant scripts from there? (at least you would have the same JVM and classloader) ? Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Date: Wed, 14 Apr 2010 08:26:50 -0700 > From: elstonk...@yahoo.com > Subject: Calling CYGWIN from ANT via EXEC > To: user@ant.apache.org > > It's actually much easier to use CYGWIN from Ant than stated in the > documentation with the task. Here is an example of using Ant to run a > shell script via CYGWIN (be sure the shell script is formatted for unix): > > > > > > Note that all arguments to the script in this case must be on the same > as the script file or they won't show up as args to the script, but rather, > args to bash. I haven't figured out how to send an argument with spaces in > it, but I'm sure you Ant guru's could tell me. Any help there? I tried > 'myScript.sh "argument with spaces" arg2', but that didn't work. CYGWIN > wants spaces escaped. > > Thanks, > Eric > > > > _ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
Re: Calling CYGWIN from ANT via EXEC
Thanks Martin! If I had my choice I'd be running all of my builds from unix. All of it is deployed to unix. Unfortunately we're using this obtuse application called Versata that not only forces us to build in winders, but it doesn't support win2k3, only xp. I don't think it would survive cygwin... On Apr 14, 2010, at 11:17 AM, Martin Gainty wrote: i believe the majority of SGML parsers will parse better known as non-braking space character as 'space character' you can also try the old hex 20 e.g. if its Windoze folder name try the '8.3 name' C:\Documents and Settings becomes C:\DOCUME~1 dumb question but i have to ask why not launch cygwin beforehand and run your ant scripts from there? (at least you would have the same JVM and classloader) ? Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Date: Wed, 14 Apr 2010 08:26:50 -0700 From: elstonk...@yahoo.com Subject: Calling CYGWIN from ANT via EXEC To: user@ant.apache.org It's actually much easier to use CYGWIN from Ant than stated in the documentation with the task. Here is an example of using Ant to run a shell script via CYGWIN (be sure the shell script is formatted for unix): Note that all arguments to the script in this case must be on the same as the script file or they won't show up as args to the script, but rather, args to bash. I haven't figured out how to send an argument with spaces in it, but I'm sure you Ant guru's could tell me. Any help there? I tried 'myScript.sh "argument with spaces" arg2', but that didn't work. CYGWIN wants spaces escaped. Thanks, Eric _ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
RE: Calling CYGWIN from ANT via EXEC
the "religious wars" of cygwin vs windoz...similar to the differences between a ferrari and a yugo unix is the ferrari where yugo is the *glad to hear that worked for you* Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Date: Wed, 14 Apr 2010 11:34:12 -0700 > From: elstonk...@yahoo.com > Subject: Re: Calling CYGWIN from ANT via EXEC > To: user@ant.apache.org > > Thanks Martin! If I had my choice I'd be running all of my builds from unix. > All of it is deployed to unix. Unfortunately we're using this obtuse > application called Versata that not only forces us to build in winders, but > it doesn't support win2k3, only xp. I don't think it would survive cygwin... > > > > On Apr 14, 2010, at 11:17 AM, Martin Gainty wrote: > > > i believe the majority of SGML parsers will parse > > better known as non-braking space character as 'space character' > > you can also try the old hex 20 e.g. > > > if its Windoze folder name try the '8.3 name' > C:\Documents and Settings > becomes > C:\DOCUME~1 > > dumb question but i have to ask why not launch cygwin beforehand and run your > ant scripts from there? > (at least you would have the same JVM and classloader) > > ? > Martin > __ > Verzicht und Vertraulichkeitanmerkung > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung > oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich > dem Austausch von Informationen und entfaltet keine rechtliche > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen > wir keine Haftung fuer den Inhalt uebernehmen. > > > > > > > Date: Wed, 14 Apr 2010 08:26:50 -0700 > From: elstonk...@yahoo.com > Subject: Calling CYGWIN from ANT via EXEC > To: user@ant.apache.org > > It's actually much easier to use CYGWIN from Ant than stated in the > documentation with the task. Here is an example of using Ant to run a > shell script via CYGWIN (be sure the shell script is formatted for unix): > > > > > > Note that all arguments to the script in this case must be on the same > as the script file or they won't show up as args to the script, but rather, > args to bash. I haven't figured out how to send an argument with spaces in > it, but I'm sure you Ant guru's could tell me. Any help there? I tried > 'myScript.sh "argument with spaces" arg2', but that didn't work. CYGWIN wants > spaces escaped. > > Thanks, > Eric > > > > > > _ > The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with > Hotmail. > http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 > > > > > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > _ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
Property File load issue
Hello All, I have a user experiencing a frustrating issue with our ant + ivy integration. The issue really has nothing to do with ivy except the properties it needs are not loaded by ant. For some reason, on a single desktop (that I know of) ant is not loading ${user.home}/build.properties. This setup works fine from various other desktops and servers. From our build.xml, the property load task is: Which is the second property definition in the build.xml, the first being: I have verified that the file exists in C:\Documents and Settings\ and that ${user.home} resolves correctly to C:\Documents and Settings\. I added echoes for the properties that are set in ${user.home}/build.properties and none of them get set. We tried hard coding the path, going up one level (C:\Documents and Settings) with the path hard coded, and recreating the build.properties file in ${user.home}, but none of these worked. Running using verbose, ant indicates that C:\Documents and Settings\\build.properties does not exist (which it does). I don't see anything out of the ordinary as far as extra spaces in the path or a carriage return that would affect locating the file. We are using ant 1.7, jdk 1.6.0_16, and Windows XP. So far, I have not found a solution via google L Any ideas? Thanks, Barry Confidentiality Notice! This electronic transmission and any attached documents or other writings are confidential and are for the sole use of the intended recipient(s) identified above. This message may contain information that is privileged, confidential or otherwise protected from disclosure under applicable law. If the receiver of this information is not the intended recipient, or the employee, or agent responsible for delivering the information to the intended recipient, you are hereby notified that any use, reading, dissemination, distribution, copying or storage of this information is strictly prohibited. If you have received this information in error, please notify the sender by return email and delete the electronic transmission, including all attachments from your system.
Re: Property File load issue
Hello Barry, did you make sure that ${user.home} resolves on the problematic desktop as "C:\Documents and Settings\[username]". I have had frustrating cases when running CruiseControl as a service on a Win32 box that ${user.home} was resolving to something unexpected. I think Java looks up one's desktop directory from the registry, and assumes that the home directory is the parent directory of the desktop directory. If everything else fails, try to start ant with a -Duser.home="C:\Documents and Settings\JohnDoe" Regards, Antoine Barry Pape wrote: Hello All, I have a user experiencing a frustrating issue with our ant + ivy integration. The issue really has nothing to do with ivy except the properties it needs are not loaded by ant. For some reason, on a single desktop (that I know of) ant is not loading ${user.home}/build.properties. This setup works fine from various other desktops and servers. From our build.xml, the property load task is: Which is the second property definition in the build.xml, the first being: I have verified that the file exists in C:\Documents and Settings\ and that ${user.home} resolves correctly to C:\Documents and Settings\. I added echoes for the properties that are set in ${user.home}/build.properties and none of them get set. We tried hard coding the path, going up one level (C:\Documents and Settings) with the path hard coded, and recreating the build.properties file in ${user.home}, but none of these worked. Running using verbose, ant indicates that C:\Documents and Settings\\build.properties does not exist (which it does). I don't see anything out of the ordinary as far as extra spaces in the path or a carriage return that would affect locating the file. We are using ant 1.7, jdk 1.6.0_16, and Windows XP. So far, I have not found a solution via google L Any ideas? Thanks, Barry Confidentiality Notice! This electronic transmission and any attached documents or other writings are confidential and are for the sole use of the intended recipient(s) identified above. This message may contain information that is privileged, confidential or otherwise protected from disclosure under applicable law. If the receiver of this information is not the intended recipient, or the employee, or agent responsible for delivering the information to the intended recipient, you are hereby notified that any use, reading, dissemination, distribution, copying or storage of this information is strictly prohibited. If you have received this information in error, please notify the sender by return email and delete the electronic transmission, including all attachments from your system. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: Calling CYGWIN from ANT via EXEC
Eric Fetzer wrote: It's actually much easier to use CYGWIN from Ant than stated in the documentation with the task. Here is an example of using Ant to run a shell script via CYGWIN (be sure the shell script is formatted for unix): Note that all arguments to the script in this case must be on the same as the script file or they won't show up as args to the script, but rather, args to bash. I haven't figured out how to send an argument with spaces in it, but I'm sure you Ant guru's could tell me. Any help there? I tried 'myScript.sh "argument with spaces" arg2', but that didn't work. CYGWIN wants spaces escaped. Thanks, Eric I would have 2 suggestions for you : - make a wrapper bash script to work around the issue of argument with spaces, maybe write the arguments to a file that cygwin bash can source like arg1=something arg2=bla ... - or get cygwin and scripting out of the equation and reimplement completely in ant what scp_files.sh does, if it is not too complicated. The name suggests that you could use the scp task of ant. Regards, Antoine - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: IVYDE, Eclipse 3.5 & WTP
We actually have this working. Had the same issue, but I don't recall exactly what the cause was. (it's been a while) I'll dig into my current setup and see how it differs, perhaps we can sort it out. I'm running OSX, Galileo SR2, but with Ivy 2.2.x-local-20091117220235 and IvyDE 2.1.0.200911161501-hudson-79. Yes, that's a trunk release. It was for a bug fix, but I don't remember which :(. It's' been stable for us (>100 developers) for months now. My .classpath entry for Ivy is slightly different: I also have the Dyanamic Web module and Java facets set on my [war] project. When I resolve I can expand the Ivy lib reference, revealing resolved workspace projects and jars. Deploying to Tomcat 6 via WTP works as expected. ~Tim On Tue, Apr 13, 2010 at 9:31 PM, Eric Gulatee wrote: > All, > > I've constantly had problems getting my dependencies declared in ivy to be > published to the tomcat server. > Before you answer just add the JavaEE module dep, I have already done > that... > > When I check my .metadata where the WebApp is being published, I don't see > a > lib directory under WEB-INF. > > I am using eclipse 3.5, MaxOSX, IVY 2.1.0 IVYDE 2.0.0 final. > > > Any thoughts? Any way to debug this? > I tried a few options: > > ivy with all confs > Wiped our my tomcat, forced a republish... No effect. > > > To prove I didn't miss the JavaEE module dep: > Here's my .classpath > > ?xml version="1.0" encoding="UTF-8"?> > > > > > path="src/main/java"/> > > > > > path="src/test/java"/> > > > > > path="src/main/resources"/> > > > > path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/> > > > > path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?ivyXmlPath=ivy.xml&confs=*"> > > > > > name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> > > > > > > > > > > > > > Tomcat is complaining about a spring web context class.. > > SEVERE: Error configuring application listener of class > org.springframework.web.context.ContextLoaderListener > java.lang.ClassNotFoundException: > org.springframework.web.context.ContextLoaderListener > > > However... > > I do have spring-web- listed as a dep/jar in ivy.xml > And the jar does have the missing class... > > package org.springframework.web.context; > > > > import javax.servlet.ServletContextEvent; > > import javax.servlet.ServletContextListener; > > > > /** > > * Bootstrap listener to start up and shut down Spring's root {...@link > > WebApplicationContext}. > > * Simply delegates to {...@link ContextLoader} as well as to {...@link > > ContextCleanupListener}. > > * > > * This listener should be registered after > > * {...@link org.springframework.web.util.Log4jConfigListener} > > * in web.xml, if the latter is used. > > * > > * @author Juergen Hoeller > > * @since 17.02.2003 > > * @see org.springframework.web.util.Log4jConfigListener > > */ > > public class ContextLoaderListener extends ContextLoader implements > > ServletContextListener { > > > > > > As I said, I do a few cleans, have wiped out the server. changed > workspace. Issue remains the same... > > I never do see WEB-INF/lib get created under the appropriate directory > under > .metadata in my workspace. > > > Any thoughts? I don't think I'm doing anything silly/obviously wrong... > I have had this flaky behaviour before where publish wouldn't always > publish... It did work eventually... [After cleans, Destroy servers, > change workspace] > > Cheers, > Eric G. >
Re: Calling CYGWIN from ANT via EXEC
Yeah, I was using the scp task before. It started crashing every single week for no apparent reason. If you run it a second time with the exact same code it works. So here I am... On Apr 14, 2010, at 4:32 PM, Antoine Levy Lambert wrote: Eric Fetzer wrote: It's actually much easier to use CYGWIN from Ant than stated in the documentation with the task. Here is an example of using Ant to run a shell script via CYGWIN (be sure the shell script is formatted for unix): Note that all arguments to the script in this case must be on the same as the script file or they won't show up as args to the script, but rather, args to bash. I haven't figured out how to send an argument with spaces in it, but I'm sure you Ant guru's could tell me. Any help there? I tried 'myScript.sh "argument with spaces" arg2', but that didn't work. CYGWIN wants spaces escaped. Thanks, Eric I would have 2 suggestions for you : - make a wrapper bash script to work around the issue of argument with spaces, maybe write the arguments to a file that cygwin bash can source like arg1=something arg2=bla ... - or get cygwin and scripting out of the equation and reimplement completely in ant what scp_files.sh does, if it is not too complicated. The name suggests that you could use the scp task of ant. Regards, Antoine - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
AW: Looping number of times
> It did work with antconrib 1.0b3 > > I just have another question, is there a way to override jar > in ant lib > directory Try Jan - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org