Re: antcontrib or antelope

2009-09-03 Thread Dale Anson
Once upon a time, ant-contrib was under fairly active development, and I proposed to the ant-contrib admins to merge my Antelope tasks with their project since there seemed to be a good fit between the two projects. Not long after that, the focus of ant-contrib seemed to be on the C compiler task

Re: Building with JDK 1.3. Which version of ANT?

2009-07-30 Thread Dale Anson
I ran into a similar problem just this morning with Java 1.5 and Java 1.6 incompatibility. In your javac task in your build file, you should also set the bootclasspath, and point it to the rt.jar for Java 1.3. This will help you not introduce usage of Java 1.5 APIs into your Java 1.3 build since

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

2009-06-11 Thread Dale Anson
For if/else, try/catch, and changing the value of a property, all you need is either antcontrib (ant-contrib.sourceforge.net) or antelope (antelope.tigris.org) tasks. Dale On Thu, Jun 11, 2009 at 10:48 AM, Dean Schulze wrote: > > I anticipate using a simple build.xml with different targets to ki

Re: Use of Sleep

2009-06-01 Thread Dale Anson
You might want to check out the AntPerformanceListener in either Ant-Contrib (http://ant-contrib.sourceforge.net/) or Antelope ( http://antelope.tigris.org/nonav/docs/manual/bk03ch27.html). This is a listener that you add on the command line when you start Ant, and it will give you a summary of wh

Re: Utility to Generate Diagram

2009-05-14 Thread Dale Anson
Giant is another: http://giant.tigris.org/ On Thu, May 14, 2009 at 11:13 AM, Murray, Mike wrote: > http://www.ggtools.net/grand/, which is linked from > http://ant.apache.org/external.html, works well. > > -Original Message- > From: raghu guru [mailto:raghure...@gmail.com] > Sent: Thur

Re: Gunzip error

2009-01-22 Thread Dale Anson
Does you build user have permission to read the file? On Thu, Jan 22, 2009 at 9:51 AM, Faded-Maximus wrote: > > I have been trying to figure this out for the last few hours to no avail. > > The code works fine on my one linux account and after editing a few > variables and using it on the build

Re: how much time an action took

2008-08-17 Thread Dale Anson
Antelope has this too. See docs for the stopwatch task at: http://antelope.tigris.org/nonav/docs/manual/bk03ch10.html You might also be interested in the performance monitor, which can give you a report on the time it takes for each target to run: http://antelope.tigris.org/nonav/docs/manual

Re: make a string lowercase

2008-08-17 Thread Dale Anson
Antelope has this, see docs here: http://antelope.tigris.org/nonav/docs/manual/bk03ch13.html Dale Guy Catz wrote: Is it possible to make a string lowercase (or uppercase)? Something like ${myVar} can be "Release", while after calling , ${newVar} will be set to "release". Does somethi

Re: compile C files with ant

2008-08-10 Thread Dale Anson
See http://ant-contrib.sourceforge.net/cpptasks/index.html and http://ant-contrib.sourceforge.net/cpptasks/antdocs/CCTask.html Kamran Hameed wrote: can we compile c files (using gcc) on ant??? if yes then how - To uns

Re: Using the script tag, wanting to return a value

2008-06-11 Thread Dale Anson
trianni wrote: I am currently using svnant with javasvn and everything works great, it is just very sloow. Much slower than command line svn or SmartSVN. I was thinking about trying svnkit as a replacement for javasvn. Would it be any faster? --- Shawn Castrianni -Original Message--

Re: Using the script tag, wanting to return a value

2008-06-11 Thread Dale Anson
Have you tried the svn ant task from subclipse? http://subclipse.tigris.org/svnant.html The documentation appears to be out of date since it doesn't mention that the "info" command is supported, yet there is a command in the code base for it. The documentation also doesn't say it can use svn

Re: how to return properties from "called" build.xml target to "calling" build.xml target

2008-06-10 Thread Dale Anson
The ant-contrib version of antcallback has a bug that will cause the build to fail with Ant 1.7 when it is called from an "import" build file. I fixed it in the Antelope version of the task: http://antelope.tigris.org/files/documents/1409/11489/AntelopeTasks_3.4.5.zip I haven't updated the an

Re: Redirects with ant-contrib post task

2008-04-29 Thread Dale Anson
I don't have a suggestion, although I can tell you that I only created the Post task to do a simple post. It is not a full http client, and won't follow a redirect. It was really designed for posting build results to a servlet. You might look at the newer http tasks in Ant itself since they

Re: Ant Target timing

2008-04-08 Thread Dale Anson
You can use the Performance Monitor from either ant-contrib or antelope. See docs at: antelope: http://antelope.tigris.org/nonav/docs/manual/bk03ch27.html ant-contrib: http://ant-contrib.sourceforge.net/tasks/tasks/index.html Dale Tom Henricksen wrote: Is it possible for ant to give timing

Re: Capitalize property value

2008-01-31 Thread Dale Anson
The StringUtils task from the Antelope project will do it: http://antelope.tigris.org/nonav/docs/manual/bk03ch13.html Here's an example: prop2 before = ${prop2} prop2 after = ${prop2} StringUtils will also do

Re: How to set a property to the modification time of a file

2008-01-27 Thread Dale Anson
See the FileUtils task in the Antelope project: http://antelope.tigris.org/nonav/docs/manual/bk03ch12.html Hope this helps, Dale Kruszewski Marek wrote: How to set in an ant-task a property to the modification time of a file? - Marek ---

Re: target progress bar

2007-11-22 Thread Dale Anson
What I did for the progress bar in Antelope is to count the number of tasks to be executed, then created a build listener that increased the bar on each task completion. The tricky part is counting the number of tasks in advance. While this doesn't give a time estimate, it does give a pretty

Re: getting filename from dir listing

2007-09-30 Thread Dale Anson
Another alternative is to use the FileUtils and StringUtils from Antelope, http://antelope.tigris.org. Here's an example: first 8 characters of file name = ${first_8} This will show the first 8 characters of the first file in Ant's lib directory

Re: TImestamping in ANT

2007-08-04 Thread Dale Anson
did worked. Also java version was same at all the places. SO I am assuming that there is some problem in using this listner I think Antelope could be a good option but the question is where I can download ANTELOPE ? I couldn't find it on the web site you mentioned. Please Help ! THanks

Re: TImestamping in ANT

2007-07-26 Thread Dale Anson
Another option for this is to use either the stopwatch task or the performance listener from either antcontrib (antcontribe.sourceforge.net) or antelope (antelope.tigris.org). The performance listener is actually quite nice in that it gathers the statistics as the build runs, then outputs the

Re: How can I capture a file's date to a property?

2007-07-24 Thread Dale Anson
What those mean is that there are other tasks or types with the same name loaded via one of the numerous jars in your ant classpath. You can make the messages go away by using namespaces, which then lets Ant explicitly pick the right task or type. Try it like this and the 'trying to override'

Re: AW: random number generator

2007-07-24 Thread Dale Anson
Yet another option, use the math task from antelope (http://antelope.tigris.org). Here's an example from the docs: a random number between 0 and 100: ${result} Dale [EMAIL PROTECTED] wrote:

Re: How can I capture a file's date to a property?

2007-07-23 Thread Dale Anson
Hi Charles, There seems to be an issue with the antelope.taskdef file for a few tasks. Try using the antlib.xml instead. The example below works fine for me using the current AntelopeTasks_3.4.2.jar from http://antelope.tigris.org. I tested this on both Ant 1.6.5 and 1.7.0.

Re: How can I capture a file's date to a property?

2007-07-22 Thread Dale Anson
Hi Gilbert, Your example looks just right. That should work with no problems. Dale Rebhan, Gilbert wrote: Hi, if you want/need to go a more ' Antlike ' way = i forgot there's another possibility with the task from Antelope "... lastmodified Get the "last modified" date/timestamp of a f

Re: AW: Is project Antidote still alive?

2007-07-22 Thread Dale Anson
I assume everyone knows the alternative is Antelope? (antelope.tigris.org) Dale Jérôme Warnier wrote: [EMAIL PROTECTED] wrote: Antidote is retired since March 2005. http://marc.info/?l=ant-dev&m=111208322503443&w=2 Where are these broken links? All links in "Getting Involved" on http://ant.

Re: Simple if/else Condition

2007-07-22 Thread Dale Anson
If you're not opposed to external tasks, either antcontrib (antcontrib.sourceforge.net) or Antelope (antelope.tigris.org) provide straight-up if/else tasks. Dale Evan J wrote: Hi, I read the documents on Condition and Available tasks and from what I see, both tasks only set a certain proper

Re: AW: Convert Value to lower case

2007-06-27 Thread Dale Anson
An alternate solution is the StringUtils task in Antelope. See documentation here: http://antelope.tigris.org/nonav/docs/manual/bk03ch13.html And download here: http://antelope.tigris.org/files/documents/1409/11489/AntelopeTasks_3.4.2.zip This task is compatible with Ant 1.6.5. Dale [EMAI

Re: broken in antcontrib 1.0b3 ?!

2007-06-09 Thread Dale Anson
Hi, Sorry for the late response. Did you get an answer to this? The assert task in antcontrib is based on the assert task from antelope. You might try the antelope version, I've verified that you can nest an in it. Here's a link to the jar with just the tasks: http://antelope.tigris.org

Re: Escaping double quotes in properties?

2007-03-11 Thread Dale Anson
Keep in mind, though, that in fact it's spelled "potato". bill/wilandra wrote: Try using " -- HTH Bill -Original Message- From: Brown, Carlton [mailto:[EMAIL PROTECTED] Sent: Sunday, March 11, 2007 3:49 PM To: Ant Users List Subject: Escaping double quotes in properties? I'm trying

Re: Print file to a console task

2006-04-17 Thread Dale Anson
followed by should do it. On Mon, 17 Apr 2006, Roman Gavrilov wrote: Is there a task for printing an ASCII file to a console? Regards, Roman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: Get the modification time of a file into a property.

2006-03-28 Thread Dale Anson
If you're not opposed to more custom tasks, there is a FileUtil task in Antelope (antelope.tigris.org) that will get the last modified time. Dale On Thu, 23 Mar 2006, Anderson, Rob (Global Trade) wrote: I have a custom Ant task that I am using to extract documents from a document management

RE: Grep?

2006-03-07 Thread Dale Anson
It's my fault that Antelope and Ant-Contrib aren't in sync. I tend to add things to Antelope, use it a while, then eventually get around to adding it to ant-contrib. I'm way behind on updates to ant-contrib... "Unset" is sort of in ant-contrib, it's an attribute of the "variable" task. I fou

Re: ?How to split a file? Split Task?????

2006-02-21 Thread Dale Anson
The split task referenced in the bug is the same split task from Antelope. To use the Antelope version: 1. download the task zip file from http://antelope.tigris.org/files/documents/1409/11489/AntelopeTasks_3.2.10.zip 2. unzip the file. It has documentation and source as well as a jar file. Co

Re: Timeout feature

2006-01-16 Thread Dale Anson
Also, Ant-Contrib has a 'limit' task to handle such cases. http://ant-contrib.sourceforge.net On Mon, 16 Jan 2006, Frank Harnack wrote: I would try the Parallel-Task. There is a timeout attribute available. Regards, Frank Quoting Santosh Pai <[EMAIL PROTECTED]>: Hey Everyun, I want t

Re: Substring

2005-11-03 Thread Dale Anson
t the StringUtil task has a builtin propertycopy feature, as properties are immutable normally ? Regards, Gilbert -Original Message- From: Dale Anson [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 4:43 PM To: Ant Users List Subject: Re: Substring You can also use the StringUtil

Re: Substring

2005-11-02 Thread Dale Anson
You can also use the StringUtil task from Antelope. Then you could do something like: ${Prop1}${Prop2} will print out /my/folder/my other folder/ Or ${Prop3} will print out the same. See http://antelope.tigris.org. Dale Rebhan, Gilbert wrote: Hi, the only alte

Re: How to get 'return-properties' from an ant-call to another build-file?

2005-10-30 Thread Dale Anson
See the "antfetch" task in ant-contrib or antelope. Ant-Contrib: http://ant-contrib.sourceforge.net Antelope: http://antelope.tigirs.org Alternatively, you can have your sub-builds write the properties you want to a file with , then read them back in with or . Dale Roland Asmann wrote:

Re: Need to expand *.txt in java task

2005-10-28 Thread Dale Anson
I'd suggest you start here: http://www.catb.org/~esr/faqs/smart-questions.html That might help you get a better response. Bob Noonan wrote: the task given in the rely generates a: pathconvert does not support nested fileset ditto the following example taken from ant.apache.org/manual/

Re: How do I walk the task tree from Java?

2005-10-28 Thread Dale Anson
Hi Ashley, It is that hard, and maybe even harder. Antelope has a progress bar to show how progress of a build. It tries to count the number of tasks that will be executed prior to the build starting, then updates the progress bar based on the taskFinished build events, so basically, it is

Re: Custom ant task and resources

2005-10-28 Thread Dale Anson
Johannes, I've written a classloader that handles that specific situation. You can view the source at: http://antelope.tigris.org/source/browse/antelope/src/ise/antelope/launcher/SubJarClassLoader.java?rev=1.1&view=markup This code is distributed with Antelope, the source is available at htt

Re: Size of zip file

2005-10-21 Thread Dale Anson
This sounded familiar, so I looked around and found a split task that I'd done a while back. It seems to me I wanted to send a largish log file by email from Ant (like 4 or 5 megs), but the mail server had a 1MB limit. I added the task to Antelope, docs for it are at: http://antelope.tigris.

Re: Fwd: Problem with exec Windows XP

2004-11-16 Thread Dale Anson
Why don't you just use the custom Ant tasks that come with Tomcat? See http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html, then follow the link for "Executing Manager Commands With Ant". There are tasks for starting and stopping Tomcat, deploying and undeploying an application

RE: Improving Tasks

2004-10-22 Thread Dale Anson
second thread to mask the characters being entered. > > http://java.sun.com/developer/technicalArticles/Security/pwordmask/ > > Michael > > -Original Message- > From: Dale Anson [mailto:[EMAIL PROTECTED] > Sent: Friday, October 22, 2004 2:57 PM > To: Ant Users Li

RE: Improving Tasks

2004-10-22 Thread Dale Anson
Probably not widely known is that Ant-Contrib has a GUI input task, see http://cvs.sourceforge.net/viewcvs.py/ant-contrib/ant-contrib/src/net/sf/antcontrib/input/ GUIInputHandler. It does not do password masking, however. This particular input handler is copy and paste from the gui input handler u

Re: AW: Icons for ant tasks?

2004-10-21 Thread Dale Anson
Antelope has a few icons, but they're generic. There's a target icon and a task icon (a little wrench) that is used for all tasks, but that doesn't sound like what you're looking for. If you find some, or make some, maybe they can be added to both Antelope and Antidote. Dale > Antidote has som

Re: Feature Requests for Ant?

2004-10-15 Thread Dale Anson
The best way is to submit a feature request through Ant's bugzilla. There is a link on the front page of the Ant site. Then follow up on the Ant developer list, and if you bug people enough, it'll get done. You'll get a quicker response if you can attach a patch to the enhancement request that f

Re: Question re SSH2/Scp/Sshexec

2004-10-08 Thread Dale Anson
I don't think there is any difference in format between ssh1 and ssh2 known_hosts files. The details of the file format are in the man pages for sshd(8), on line at http://www.openbsd.org/cgi-bin/man.cgi?query=sshd&sektion=8&arch=&apropos=0&manpath=OpenBSD+Current > > Can anyone point me to an e

Re: change to a property

2004-07-31 Thread Dale Anson
Another option would be to use the 'variable' task from ant-contrib. 'variable' is used exactly like a property, but is mutable. Dale Bill Rich wrote: Properties are immutable so you can not change them once they are set. But, you can specify the value multiple times so that only the first one w

Antelope 3.0 released

2004-02-18 Thread Dale Anson
Antelope 3.0 is now available at http://antelope.tigris.org. Antelope is a graphical user interface for Ant. This release supports Ant 1.5 and 1.6 and includes updated plugin support for jEdit 4.2. Note that this project has moved from sourceforge.net to tigris.org. Dale ---

Re: Ant Docs - valid attributes of taskdef?

2004-02-06 Thread Dale Anson
Another option is to run the AntStructure task. This "generates a DTD for Ant buildfiles which contains information about all tasks currently known to Ant." Be warned that "This task doesn't know about required attributes, all will be listed as #IMPLIED." The quotes are from the Ant docs. Dale

Re: ant-contrib and property immutability

2004-01-26 Thread Dale Anson
Another option is to use ant-contrib's Variable task, which is a mutable property. It is in the 0.6 ant-contrib release. Dale Stirling, Scott wrote: > Hi, > > I am writing to share my workaround for a gotcha I encountered with the latest > ant-contrib tak (version 0.6) and some standard Ant t

Re: "ant -n", How to display tasks and args WITHOUT executing them

2003-11-07 Thread Dale Anson
ve a very clear execution path. How does 'make -n' handle situations where conditions could be set and later checked to affect what happens? Erik On Thursday, November 6, 2003, at 01:01 PM, Dale Anson wrote: You might want to look at Antelope (http://antelope.sourceforge.net). I

Re: Need help for ["AntCall" cannot return properties]

2003-10-30 Thread Dale Anson
I added the AntCallBack and AntFetch tasks from antelope to ant-contrib. AntCallBack works like AntCall, but let's you get back some properties, and AntFetch does the same thing for the Ant task. You'd need to get them out of ant-contrib's cvs, as they are not in the current release. Ant-Contri

Re: Is there a way?

2003-07-24 Thread Dale Anson
Actually, Ant 1.6 includes ssh and scp tasks. These tasks are based on jsch (www.jcraft.com), which uses a bsd style license, as opposed to sshtools, which use a gpl license. Dale Avery Marvin R wrote: Thanks. sshexec looks very promising. MRA -Original Message- From: David McTavish

Re: SSHExec task

2003-04-04 Thread Dale Anson
Or in your classpath if you can't write to $ANT_HOME/lib. Jesse Stockall wrote: On Friday, April 4, 2003, at 11:03 AM, Samuel Blanchet wrote: Hi all, I'm using the SSHExec task with ant 1.6a but I have this error after starting my script. file:///C:/temp/start_moteur.xml:64: taskdefA class nee