Re: Exec Task Problem on Linux

2015-04-14 Thread Steve Schlaifer
On Tue, Apr 14, 2015 at 03:04:28PM -0500, Earl Hood wrote: > On Tue, Apr 14, 2015 at 2:21 PM, Chris Barlock wrote: > > Thank you, Steve. If I make the executable="/bin/sh" and uncomment the > > protoc command, I get: > > You need the -c option to /bin/sh to indicat

Re: Exec Task Problem on Linux

2015-04-14 Thread Steve Schlaifer
t, the exec > task failed saying "cannot execute binary file" for protoc. Where have I > gone wrong here? Wild cards like /root/CCM/src/protobuf/asf/*.proto are expanded by the shell in unix type o/s's. When you took out the /bin/sh you no longer get this expanded. I

Re: StarTeam Upgrade

2014-07-22 Thread Steve Cohen
Boy, this brings back memories. I wrote that code a dozen years ago. Haven't used StarTeam for over 10 so I'm not the go-to-guy anymore. Good luck, though! Steve On 07/22/2014 09:05 AM, Stefan Bodewig wrote: On 2014-07-17, Eric Fetzer wrote: We're upgrading our StarTeam ve

Re: AW: priority question

2012-08-30 Thread Steve Amerige
really means "*prepend *the given classpathref before other classpaths, including the system classpath." This turns out to be exceedingly useful. And, while the reverseloader attribute is marked as deprecated (and has been since the beginning), I have been assured that it isn

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-08 Thread Steve Amerige
it as a message to be ignored. Many thanks again for your input and help! Steve Amerige SAS Institute, Deployment Developer *build.xml:* println GroovySystem.getVersion() *output with Ant 1.7.1:* *without reverseloader="true":* main: [echo] ant: Apache An

Re: How get checksum of files ?

2012-08-08 Thread Steve Amerige
Please see: http://ant.apache.org/manual/Tasks/checksum.html Enjoy, Steve Amerige SAS Institute, Deployment Developer On 8/8/2012 7:58 AM, GNSH wrote: How to get the files checksum. ? suppose i have two files or more like one.jar and two.jar .geting these two file checksum and comparing with

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-07 Thread Steve Amerige
ter way to give my classpath priority other than the *reverseloader *trick, can someone provide example code that works in both Ant 1.7 and 1.8 (even if conditional code is used) so that I get it right? Many thanks! Steve Amerige SAS Institute, Deployment Developer *build.xml:*

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-06 Thread Steve Amerige
is for this problem, even if it is (1) above. Enjoy, Steve Amerige SAS Institute, Deployment Developer On 8/3/2012 1:57 PM, Steve Amerige wrote: Hi all, My Ant script is being called with an environment including the classpath that includes the folder containing the groovy-all-1.7.10.jar file.

How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-03 Thread Steve Amerige
rious tasks, macros, etc. that are defined back on the Ant side and I want logging information to go to the same logfile as well. *Can anyone think of a way to execute some Groovy 2.0 code given that the classpath already includes a 1.7 Groovy jar file?* Thanks, Steve Amerige SAS Inst

Can't use force="true" over SSHFS

2012-06-23 Thread Steve Ramage
I'm having a problem with the force='true' directive over SSHFS. At first I thought it was just being ignored but I think the bug is more subtle than that. Based on the error it may even be a race condition.   I have attached an example build file that demonstrates the error, basically every oth

Re: Filtering Macrodef Elements

2012-01-25 Thread Steve Amerige
e. Can anyone suggest how I can do the above? Thanks, Steve Amerige SAS Institute, Deployment Software Development On 1/25/2012 1:12 PM, Scot P. Floess wrote: Steve, Definitely gonna need to think about this ;) At this point, "I got nothin'" ;) On Wed, 25 Jan 2012, Steve Am

Eclipse Debugging: Ant and Groovy

2012-01-25 Thread Steve Amerige
ut the above doesn't work. Enjoy, Steve Amerige SAS Institute, Deployment Software Development *build.xml:* *doit.groovy:* import org.apache.tools.ant.Task def groovydoit() {

Re: Filtering Macrodef Elements

2012-01-25 Thread Steve Amerige
will define the *mytokenizer *macrodef or scriptdef in the same file as the *myentrypoint *and I can use Ant 1.7, Ant-Contrib, and Groovy code. I'm trying to figure out how to define *mytokenizer *to solve this problem. Thanks, Steve Amerige SAS Institute, Deployment Software Development

Filtering Macrodef Elements

2012-01-25 Thread Steve Amerige
(essentially, Java), that something might still be possible. Any ideas? Many thanks, Steve Amerige SAS Institute, Deployment Software Development

Ant For Loop: Looping over Ranges with Step and Over PropertySets

2011-12-08 Thread Steve Amerige
t version. Please feel free to improve on the code below and please do share with me directly or in this list with your comments and/or improvements. Again, thanks to Scot for his energetic, fun, and useful contributions! Enjoy! Steve Amerige SAS Institute, Deployment Software Development *

Re: Negative Lookahead and Regexp

2011-11-10 Thread Steve Amerige
I've also wondered if a groovy script might be the best way to go. Any pointers for either of these workarounds? Enjoy, Steve Amerige SAS Institute, Deployment Software Development On 11/10/2011 8:44 AM, Vimil Saju wrote: Th

Re: Negative Lookahead and Regexp

2011-11-10 Thread Steve Amerige
Hi all, So, I'm guessing that Ant 1.7+ (with optional Ant-Contrib) doesn't support negative lookahead regex searches. So, I'm refocusing on the main objective here: I want a propertyset that excludes properties matching certain patterns. Any idea as to how to accomplish this?

Negative Lookahead and Regexp

2011-11-09 Thread Steve Amerige
See the regular expression page on this: http://www.regular-expressions.info/lookaround.html Thanks for any assistance! Enjoy, Steve Amerige SAS Institute, Deployment Software Development

Re: Macrodef and If

2011-11-09 Thread Steve Amerige
uming that an element has optional="true", is there a way to test whether the element, in fact, is being used by the caller? This might be useful information to know inside the definition of the macrodef. Thanks for your response, again! Enjoy, Steve Amerige SAS Institute, Deployment

Re: Macrodef and If

2011-11-08 Thread Steve Amerige
like. Also, I'd like to be able to add *optional="true"* to the element. But, I don't know how to check in the macrodef whether an element was actually used or not by the caller (again, in Ant only, possibly with Ant-Contrib). What do you think? Can you improve on the

Macrodef and If

2011-11-08 Thread Steve Amerige
, can you show an example of how the mymacrodef would be coded? Thanks! Steve Amerige SAS Institute, Deployment Software Development

Re: Checking if a Target Exists

2011-11-03 Thread Steve Amerige
s to check for a macrodef, not sure about targets? The conditions <http://ant.apache.org/manual/Tasks/conditions.html> page tells us: "Types include tasks, datatypes, scriptdefs, macrodefs and presetdefs." So, I'm not sure if target is a task. I'll check it out. Than

Re: Checking if a Target Exists

2011-11-03 Thread Steve Amerige
Hi Vimil, Thanks for the feedback. Any specifics on just how to do what you mention (even if untested)? Thanks again, Steve Amerige SAS Institute, Deployment Software Development On 11/3/2011 9:55 AM, Vimil Saju wrote: I think you can use the scriptdef task to do this. You can write a

Checking if a Target Exists

2011-11-03 Thread Steve Amerige
e entire JVM to be loaded (e.g., as with antcall). My environment is Ant 1.7 and allows for the use of Ant-Contrib and Groovy. Any ideas on how to do this? Even better, any solutions anyone have to share?! Thanks, Steve Amerige SAS Institute, Deployment Software Development

Re: does not "preservelastmodified" on directories.

2011-10-18 Thread Steve Amerige
Hi Stefan, Thanks for the super-rapid reply. I'll try a couple of approaches and report back what seems to do the best job. It might just be that using (in a switch statement catering for all desired operating systems) is the only way to get exact timestamps, ACLs, etc. Again thanks!

Re: does not "preservelastmodified" on directories.

2011-10-18 Thread Steve Amerige
te doesn't fix this issue, it just changes the badness from one form to another. The task doesn't mention the 2-second granularity problem, but even with , the documentation seems to imply that it damages the modes (see the filemode and dirmode attributes). When I get a chance, I&

Generating Ant Documentation

2011-10-11 Thread Steve Amerige
doesn't seem to be well maintained. Nor are the results particularly professional looking. I'm hoping you can recommend something better that is being maintained. Thanks! Enjoy, Steve Amerige SAS Institute, Deployment Software Developer

runtarget vs. macrodef for Procedural Ant Programming

2011-07-28 Thread Steve Amerige
ow significant are they? Because of the syntax and Eclipse issues above, I tend to prefer runtarget over macrodef for zero-argument functions. Is there any compelling reason to argue against using runtarget given the assumptions above? Enjoy

macrodef, runtarget, antcall

2011-07-08 Thread Steve Amerige
whether there are any practical (e.g., perfomance) reasons for favoring macrodef over runtarget. Gotta love this group... good technical discussions here! Enjoy, Steve Amerige SAS Institute, Deployment Software Developer * P.S. On 7/8/2011 11:49 AM, Dominique Devienne wrote: Using and is IMHO a sy

Re: Equivalent: antcall with inheritrefs vs. runtarget

2011-07-08 Thread Steve Amerige
/8/2011 11:27 AM, Perrier, Nathan wrote: No, because antcall creates a new project underneath the hood, whereas runtarget (antcontrib task) does not. -Original Message----- From: Steve Amerige [mailto:steve.amer...@sas.com] Sent: Friday, July 08, 2011 10:21 AM To: Ant Users List Subject:

Equivalent:

2011-07-08 Thread Steve Amerige
Are the two statements below equivalent? Enjoy, Steve Amerige SAS Institute, Deployment Software Developer

Re: Syntax for Names: target, property, macrodef, etc.

2011-07-07 Thread Steve Amerige
me="...") are validated. But, the Ant code doesn't match what is specified by the XML BNF. Also, the XML BNF doesn't seem to allow spaces in a *Name* object. Is there an Ant BNF specification that reflects the code? Is there any formal specification for Ant syntax? Where do

Eclipse @category for Ant?

2011-07-06 Thread Steve Amerige
this would make the outline view in Eclipse better for Ant scripts. Ideas? Thanks, Steve Amerige SAS Institute, Deployment Software Development

Re: Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Steve Amerige
Is there any notion of scoping? I'd love to hear what Ant is capable of doing with respect to var, property, macrodef, scriptdef, etc. scoping for Ant 1.6, 1.7, and 1.8. Thanks for your help.... it's very much appreciated! Best regards, Steve Amerige SAS Institute, Deployment Softwa

Re: Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Steve Amerige
ith a dot, so there is never a problem with conflicts. I had considered both the "-" and the "." as a leading character to indicate the name is local. But, you've given a good reason to avoid "-". Thanks! Enjoy, Steve Amerige SAS Institute, Deployment Software D

Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Steve Amerige
tion of the Ant language anywhere? Can anyone help me to understand authoritatively what is allowed for name values and where in the Ant manual or specification I can read more? Many thanks for any assistance! Best regards, Steve Amerige SAS Institute, Deployment Software Development

Re: To check server is down

2011-02-10 Thread Steve Loughran
king for something to go live before running the unit tests against it -steve - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org

Re: Ivy dependency revision for releasing vs development

2010-11-08 Thread Steve Miller
, which would never grab the 1.1.0. Never done it, but just trying to think what I'd do. Steve On Mon, Nov 8, 2010 at 11:46 AM, Mike Quilleash wrote: > Thanks Steve.  I've thought about your suggestions below but I think I really > don't want to ever use latest.integratio

Re: AntClassLoader and the system classloadr.

2010-09-29 Thread Steve Loughran
On 15/09/10 05:27, Stefan Bodewig wrote: On 2010-09-14, Rafael de F. Ferreira wrote: From a cursory inspection of org.apache.tools.ant.AntClassLoader, it seems Ant only delegates to the system ClassLoader if the class being loaded belongs to a fixed set of packages[1]. No, Ant almost always

Re: Is ANT support WebDav task?

2010-09-29 Thread Steve Loughran
On 18/09/10 15:42, Chee Yang Chau wrote: I don't understand, how to use ant-webdav? the basic answer was "no, somebody has to write one". what it does do really well is support SCP most project deploy using SCP to push their artifacts up to the remote site -

Re: AW: http request handling

2010-03-25 Thread Steve Loughran
On 25/03/2010 05:27, jan.mate...@rzf.fin-nrw.de wrote: Ant is a buildtool. Letting the build waiting for incoming HTTP requests will slow down the build and I dont see any reason why. So could you please elaborate about your use case? - who will create the http request - what kind of request is

Referencing file inside Jar file from fileset

2009-11-02 Thread Steve Kennedy
home grown XML files in my source tree, but I'd like to be able to avoid extracting the 3rd party XML files to include them in my sources. Is there a way to include XML file(s) from the 3rd party JAR similar to the following: Thanks in advance, Steve

Re: Java source files not part of any package

2009-10-28 Thread Steve Loughran
l in extra java source files if imported, it may compile more than you expect. -steve - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org

Re: How can we execute a specific target at a specific time from the build file

2009-10-16 Thread Steve Loughran
Ajay Mehra wrote: Hi, I have a build file which consists of multiple targets so if i have to run some targets at some point of time.letz say my Target1 should run at 1 p.m and my Target2 should run at 2pm.so is there any feature availabe in ant so that i can plan my targets to run like t

Re: problem with using with the javah task

2009-10-15 Thread Steve Loughran
Bill Au wrote: I have a need to limit the max heap size of the javah task. So I am using a : When I invoke javah directly with the same argument it actually works without error: javah -J-Xmx512m -classpath build/classes org.apache.hadoop.io.compress.

Re: AW: AW: AW: Out of memory

2009-10-07 Thread Steve Loughran
Knuplesch, Juergen wrote: Hello, I got now the Java profiler on. Maybe I will find out, whats going on. But now javadoc ran outofmemory, probably because of my change from 32Bit to 64Bit java. Use -XX:+UseCompressedOops -best feature of Java 6u15. --

Re: AW: AW: Out of memory

2009-10-06 Thread Steve Loughran
Knuplesch, Juergen wrote: Hello Steve, I had my problems with junitreport before This time the PermGenSpace error happens with saxon. For this XSLT I had to use saxon. In my build I use Saxon and for junitreport the standard VM xsl processor, How do I tell junitreport to use Saxon or

Re: AW: Out of memory

2009-10-06 Thread Steve Loughran
Knuplesch, Juergen wrote: Hello, Thanks for your answer! Good to know, that there are known problems. I already fork the junit tests. I even have parted the tests into three parts, because of earlier challenges. Memory eater is also junitreport (especially for 2200 tests) etc., all the XSLT st

Re: Help with bug diagnosis: task takes 30+ minutes to complete

2009-09-14 Thread Steve Loughran
Francis GALIEGUE wrote: ort is fairly quick. How can I diagnose the problem precisely? Can I use another XSL processor that will be faster than xalan-j2? Well, a simple ant -v showed the problem, as it shows which files are parsed. The two bigger files are 10 MB and 9 MB respectively! The she

Re: XML Parser give "bad version number in .class file"

2009-08-11 Thread Steve Loughran
jdeisenberg wrote: Steve Loughran wrote: Scot P. Floess wrote: so unless you are setting any kind of factory for the xml parser, it should use the stock XML parser that comes with Java. ant -diagnostics finds the XML parser That's the problem. diagnostics ends with

Re: XML Parser give "bad version number in .class file"

2009-08-11 Thread Steve Loughran
Scot P. Floess wrote: so unless you are setting any kind of factory for the xml parser, it should use the stock XML parser that comes with Java. ant -diagnostics finds the XML parser - To unsubscribe, e-mail: user-unsubscr

Re: Why does Junit Task buffers all logs

2009-08-04 Thread Steve Loughran
I'm not sure that XML is the right format; its painful to split up and process in chunks If you want to improve what we have, I'd welcome it. Something streamable that can be turned back into "classic" XML, yet also scaleable

Re: Problem with zip task

2009-08-04 Thread Steve Loughran
Cole, Derek E wrote: I don't think this will be possible really. The filesystem is actually a clearcase snapshot view on that NAS...it gets a set of default permissions when the view is created/updated. Clearcase is not a normal FS, wierd things happen. I fear it. If anything misbehaves, reb

Re: Adding parallel JUnit task

2009-07-01 Thread Steve Loughran
Jason Rutherglen wrote: Hello, please excuse the newbie question. For the Apache Lucene project I'd like to paralleize the unit tests by subclassing JUnitTask into ParallelJUnitTask which executes JUnitTests in threads. I don't understand how to place things like into the new task tag properly

Re: Manifest.MF - classpath is in wrong format when generated programmatically.

2009-07-01 Thread Steve Loughran
Garima Bathla wrote: David : Thanks, I have tried setting the class-path via manifestclasspath task as well within a build.xml ant script and it is the same result, with long class-path's the jar names are split over differnt lines with \n and space character. This is by design http://java.sun

Re: Doing Ant builds

2009-06-18 Thread Steve Loughran
Michael Ludwig wrote: Steve Loughran schrieb am 16.06.2009 um 16:47:55 (+0100): Michael Ludwig wrote: Okay, so you were talking about Java limitations in general, not Java limitations within the context of an Ant extension? exactly. Thanks for clarifying. What you're saying

Re: Showv stopper issue with clearAntLib

2009-06-18 Thread Steve Loughran
Laurent Morissette wrote: Hi everyone I have an issue regarding clearantlib I try to get a stream baselin with a custom task defined as follow Where I struggle is that system ou are not shown in console (So no logging possible) Ant does tricks to capture the log, you shouldnt print to it. N

Re: Doing Ant builds

2009-06-16 Thread Steve Loughran
Michael Ludwig wrote: Steve Loughran schrieb am 15.06.2009 um 12:40:59 (+0100): Michael Ludwig wrote: Steve Loughran schrieb am 12.06.2009 um 11:49:48 (+0100): we do strive to be more declarative than fully procedural languages, we don't have loops and so lack full turing-equivalence.

Re: Abort build with successful status

2009-06-15 Thread Steve Loughran
You could fail but set the exit code to 0. It will still print fail, though that is actually the job of the logger. There's no reason why a custom logger cant skip that fail message if the exit code is 0, or even print out whatever the exception message text is that raises. --

Re: Doing Ant builds

2009-06-15 Thread Steve Loughran
Michael Ludwig wrote: Steve Loughran schrieb am 12.06.2009 um 11:49:48 (+0100): we do strive to be more declarative than fully procedural languages, we don't have loops and so lack full turing-equivalence. There are also limits to what you can do in java I think I can take this to mea

Re: Doing Ant builds

2009-06-12 Thread Steve Loughran
Michael Ludwig wrote: Ina, Antoine schrieb am 11.06.2009 um 19:58:37 (+0200): I am posing a general question about Ant vs Make vs Batch: 1- What is advantage of Ant script over regular Batch script that calls up the solution files for all the projects in your system tree of projects(for Windows

Re: Replacing build.xml with Build.java - Doing Ant builds directly from Java

2009-06-12 Thread Steve Loughran
Michael Ludwig wrote: Ashley Williams schrieb am 11.06.2009 um 17:51:45 (+0100): // create the ant parent project Project project = new Project(); project.setName("project"); project.init(); // create the child targ

Re: build from java program

2009-06-08 Thread Steve Loughran
http://antbook.cvs.sourceforge.net/viewvc/antbook/examples/sections/extending/ch18_extras/embed/ # -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscri

Re: Java in JDK but ANT can't find it!

2009-05-19 Thread Steve Loughran
David Nemer wrote: Hey Guys, thank you all for your help, I'm answering the questions from Ashley, Steve and Kevin, some answers are huge due to the compilation message ANT provides. Just a reminder, I'm running ANT in a Linux Server, my overall goal is to download a version from a

Re: Sending small mail when build is finished

2009-05-18 Thread Steve Loughran
not. How can I do this? If you can, this is best handled by a CI tool, of which hudson is probably the best around https://hudson.dev.java.net/ It not only does the notifications, it can tell you who broke the build, and serve up the test results and log as HTML pages -steve

Re: Java in JDK but ANT can't find it!

2009-05-18 Thread Steve Loughran
David Nemer wrote: Just a remark, when I run the application and /opt/jdk1.6.0_06/lib/tools.jar to the classpath. It gives me a different error message: "Compile failed; see the compiler error output for details." there is no error msg and it still says BUILD SUCCESSFUL 1. is this a package-m

Re: AW: Ant 1.7.1 hangs on windows

2009-03-18 Thread Steve Loughran
jan.mate...@rzf.fin-nrw.de wrote: I just installed ant on a new windows XP workstation. I have the following settings: ANT_HOME=C:\bin\apache-ant-1.7.1 JAVA_HOME=C:\Java\jdk1.6.0_12 If I type ant -version it runs, reports the version then hangs with NTVDM.exe taking half the cpu. Does any

Re: Is there a login "wait for password" target/task?

2009-02-25 Thread Steve Loughran
Scott Stark wrote: asks for entry of some string; it doesn't ask if the property is already set, so for CI servers you set it up with login details for that account. For talking to a nested shell script, I think the component can do that I looked at telnet, which is why I thought there might

Re: Is there a login "wait for password" target/task?

2009-02-24 Thread Steve Loughran
Scott Stark wrote: Ant has optional Perforce tasks, and these tasks use the globalopts setting, so you can pass a password though that. Hi David, yes I saw that but couldn't find anything that does what I want. Our Perforce install does not allow you to pass a password as a command line paramet

Re: Trouble with simple for loops

2009-02-06 Thread Steve Liu
difference is just the namespace. But, based on the example given in the doc page (basically the thing I had problems with) I didn't need the namespace at all. so, how would I get it to work like that (on 1.6 or higher)? btw, I should have mentioned my ant version: 1.7.1 Thanks, Steve On

Re: Trouble with simple for loops

2009-02-05 Thread Steve Liu
Thanks, that seems to work (missing a tho). I assume that I would do the same for ? I have a dumb question, according to this page: http://ant-contrib.sourceforge.net/tasks/tasks/for.html is valid for ant 1.6 or higher... so the doc is wrong? Thanks, Steve On 2/5/09, Peter Reilly wrote

Trouble with simple for loops

2009-02-05 Thread Steve Liu
(Project.java:1189) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) Total time: 0 seconds Can someone help? Thanks, Steve

Re: Using new Junit 4.1 with ANT

2009-01-22 Thread Steve Loughran
Shawn Castrianni wrote: How can I use the new JUnit 4.1 with ANT 1.7.X? If I put the new junit.jar on the classpath, everything seems to work until the very end when the unit test report is created. ANT tries to use the XSL stylesheets from ant-junit.jar which apparently is not compatible wi

Re: Developers information needed

2009-01-19 Thread Steve Loughran
bhavani shanker wrote: Could you please elaborate on the two sources which u referred to in the previous mail. SVN log lists only committers but not developers (who r not committers). So it provides me only half information. And as said, Bugzilla is where all developers submit their patches etc.

Re: Invoking remote batch file using ANT

2009-01-05 Thread Steve Loughran
Rohit P wrote: Hi, I have to write a build script that will invoke a batch file on remote m/c if it runs SSH, you can in. If it is just a windows box, install telnet service and run . -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Steve Loughran
- You should specify unicode content in the XML as valid XML content, not escaped \u0123 style. -The task and things that use it set up the command line; there's a risk that it could get in the way and not preserve high unicode content. If so, its something we need to test for -A more rel

Re: Ant : Very slow on Vista

2008-12-10 Thread Steve Loughran
Eric Cambray (BlueXML) wrote: Hello, I tried different things and I have now a acceptable time. I uninstalled my anti-virus (McAffee) and now all is ok. So it's not ant. But under windows XP with an antivirus we don't have the problem. some AV tools with "real time antivirus protection" do

Re: SCP and SSHExec tasks

2008-11-26 Thread Steve Loughran
Rez wrote: Hi Is it possible to create the directories on the remote server on the fly as the scp ant task is executed or do I need to run sshexec to create them first? I use sshexec first, with a mkdir -p as the command. I also have a couple of presetdef definitions to simplify making com

Re: ant and sudo

2008-11-12 Thread Steve Loughran
Hendrik Maryns wrote: Steve Loughran schreef: The way we do root level access is to ssh in to localhost and run stuff as root there. you can either set up the command with the relevant (property driven) password, How would I do that? I need something similar for . Right now I use a plain

Re: ant and sudo

2008-11-12 Thread Steve Loughran
'm on Mac OS X (Leopard), if that matters. The way we do root level access is to ssh in to localhost and run stuff as root there. you can either set up the command with the relevant (property driven) password, or set up the ssh keys so that you can ssh in to [EMAIL PROTECTED] using k

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-06 Thread Steve Loughran
ras/embed/src/org/antbook/embed/Embedded.java?revision=1.3&view=markup Some of that code is something we should really pull into Ant to make it easier; some EmbeddedProject you create to remove effort. What do you think, Stefan? -- Steve Loughran http://www.1060.org/blogx

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-06 Thread Steve Loughran
as usual, contributions to improve this -more examples etc- are welcome. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsubscribe, e-mail: [EMAIL

Re: parallel targets

2008-11-05 Thread Steve Loughran
pull this ; add a target that prints a warning There was a Problem with endToEnd Tests!" the message is only printed if the tests failed. In our big projects we make the operation conditional because we may want to test lots of modules and not stop at

ApacheCon live video streaming available; keynotes and Apache 101 are free

2008-11-05 Thread Steve Loughran
Can't make ApacheCon this week in New Orleans? You can still watch all the keynotes, Apache 101 sessions, and system administration track in live video streams: http://streaming.linux-magazin.de/en/program_apacheconus08.htm?ann Keynotes and the Apache 101 lunchtime sessions are free; the f

Re: Examples of ant's Task

2008-11-05 Thread Steve Loughran
Rohit P wrote: Hi, I just now had a chance to look into ant task. I would definitely start working on it and make good use of it in my time-consuming build scripts. To know it still better wanted to have a look into few examples that use this task. I guess most of them have come over this ant t

Re: java.lang.NoClassDefFoundError in custom task

2008-11-03 Thread Steve Loughran
e class to load right; 3. check you have all other classes it needs on the classpath right too -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ - To unsu

Re: java.security.PrivilegedActionException in Jython scriptdef

2008-10-28 Thread Steve Loughran
Morgan Kinne wrote: Thanks Steve. You were correct of course. I was evidently trying to delete files in a directory that didn't exist! Who would have thought that would result in a security related exception. Bad on me for jumping to the conclusion I jumped to. All is working properl

Re: java.security.PrivilegedActionException in Jython scriptdef

2008-10-28 Thread Steve Loughran
rised by this. Maybe its BSF Manager at play 1. Looking at the stack trace, you've just tried to create a directory that isnt there } else if (!fsDir.isDirectory()) { handle("Directory does not exist:" + fsDir); //here 2. Is there a version of Jy

Re: Is there a way to make the get task timezone aware?

2008-10-23 Thread Steve Loughran
that one of the boxes things summertime has ended already. This week is one of those times of year where any summertime/wintertime bugs show up. Has the bug just surfaced? -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action

Re: Is there a way to make the get task timezone aware?

2008-10-23 Thread Steve Loughran
Mark Salter wrote: Settle, William wrote: Is this an issue with the task, the apache server on the other side or something I have not configured on the client or server side? I did read in my google search that Apache does/did not return last modified information by default, but this might no

Re: Build in multiple java versions using Ant

2008-10-22 Thread Steve Loughran
scuzzie wrote: Hi, I have a project written in NetBeans 6.1 that I need to be able to compile on demand using any JDK version from 1.4.2, on a machine that does not have NetBeans installed (but does have Ant of course). The app compiles under 1.4.2 and up using the Ant xml files generated by Net

Re: Ant compilation error (RMI class def not found)

2008-10-08 Thread Steve Loughran
build.xml (doesnt have any affect tho): It looks like whatever wtkpreverify is, it isn't getting the classpath set up right. Try running ant -verbose to see if the classpath gets printed out -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in A

Re: How to replace context.xml in to already deployed war+application?

2008-10-02 Thread Steve Loughran
r. 2. Dont do this on the live machine; do it before it gets there Looking at your code -you delete a dir -then copy a file from under that directory That is unlikely to work well. You should keep that context.xml somewhere safe and copy it in using overwrite="true"

Re: Build fails when 'java' task's "arg line" contains a directory path with spaces

2008-09-30 Thread Steve Loughran
at play; if there is one place bad things happen it is there, as property expansion can take place twice, and other quirks may show up. -steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: How to check whether database exists and then proceed ?

2008-09-29 Thread Steve Loughran
ed on the task, and do issue select statements to check the database health. The only variation is to support drivers like mysql and any other with a method called ping() on them, that lets us ping the database without doing any work. I don't think it is that much faster than a SELECT though.

Re: How to check whether database exists and then proceed ?

2008-09-26 Thread Steve Loughran
Kothari, Shivani wrote: Hi, Thanks for pointing it out. I want to check using ant that whether a particular database exits on MSSQL server? And if it exists I want to proceed further in the deployment script. Use the command to issue the relevant SELECT statement against the database, setting

Re: Could not create task or type of type: junit

2008-09-23 Thread Steve Loughran
uza <[EMAIL PROTECTED]>: I don't understand why this is happening, since ant-junit.jar is shipped within $ANT_HOME/lib directory. That's not junit.jar. It only contains the Ant classes that depend on JUnit classes. Please see the library dependency section of the manual. --DD

Re: How to Configure batch file in Ant?

2008-09-18 Thread Steve Loughran
mentions the unix script to run which is Probably best to the unix untar command so that permissions get preserved, otherwise shell scripts don't have their execute bit set -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action

Re: Ant Build Performance under Windows XP versus Vista

2008-09-04 Thread Steve Loughran
t ant is faster on multiway systems -steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Testing Ant Script

2008-09-02 Thread Steve Loughran
S Prabhu wrote: Hi, I have developed an ANT Script to perform certain process. I want to test this ant script without executing it. Is there is any way to test the ANT Scripts (like, Junit for java APIs) There is AntUnit, but it will execute the script, just as Junit does for its code. Yo

  1   2   3   4   5   6   7   8   9   10   >