Re: Is Apache Ant an Integrated Development Environment (IDE) for Java, C, and C++ programming languages?

2022-07-28 Thread Dominique Devienne
On Thu, Jul 28, 2022 at 12:04 PM wrote: > You should be able to include C- and C++ Stuff via or some external > tasks. E.g. http://ant-contrib.sourceforge.net/cpptasks/index.html or https://github.com/timpokorny/cpptask I've used the former ages ago, and the learning curve was a little steep,

Re: Apple Silicon M1 Compatible Build of ANT

2021-11-22 Thread Dominique Devienne
On Mon, Nov 22, 2021 at 12:23 PM David Garratt wrote: > I will soon be getting a M1 based Apple Mac and I am looking for > compatible builds of my most frequently used tools including ANT. At the moment I’ve not been able to find anything which looks like it’s > built for an arm CPU. Could anyon

Re: GenJar

2017-11-21 Thread Dominique Devienne
On Tue, Nov 21, 2017 at 11:19 AM, RAPPAZ Francois wrote: > Things turned out well at the end... > > since I could contact the original maintainer of genjar on sourceforge and > I was able to update my changes there. > > Note that this tool had some descendants. I have found on github: > mx:genjar

Re: Ant and jar creation

2017-11-09 Thread Dominique Devienne
On Thu, Nov 9, 2017 at 2:30 PM, RAPPAZ Francois wrote: > I'm returning to some java projects that I left for some years. These > projects use ant to compile, make the doc and specially they use the > external task genjar to build jar files. > > I spend some hours trying to have genjar working (I

Re: "Sync" sometimes does not delete folders

2016-10-17 Thread Dominique Devienne
On Mon, Oct 17, 2016 at 12:51 PM, Al Le wrote: > When synchronizing the dirs, we'd like to preserve some files. These files > have a certain local name. Hence we specify these files in the > 'preserveintarget' clause. > [...] What I observe is that the dir 'aaa' is not deleted because it > contai

Re: Multiple fileset and filelist comparisons

2016-04-26 Thread Dominique Devienne
On Tue, Apr 26, 2016 at 12:09 PM, wrote: > Thanks for you answer Dominique > Actually I can't just simply synchronize remote repository in one shot. I > have this intermediary fileList because I need to update remote files > through different batches which can't exceed x number of files depending

Re: Multiple fileset and filelist comparisons

2016-04-26 Thread Dominique Devienne
On Tue, Apr 26, 2016 at 11:25 AM, wrote: > I need to compare those 2 file trees to get desynchronized files from > 'DirRemote' (in order to synchronize them with the latest revision further). > Have a looked at the task? https://ant.apache.org/manual/Tasks/sync.html --DD

Re: How should an Ant be created programmatically from another (custom) Ant task?

2015-05-16 Thread Dominique Devienne
On Sat, May 16, 2015 at 3:38 PM, Christopher BROWN wrote: > I've some doubts about the "createInclude" logic... but I haven't got that > far yet. I'm stuck on the "setId()" part which just doesn't exist. > You probably need to call this Project.addReference API. Give it try, and see if that hel

Re: Execute the target only if source files have changed

2015-01-05 Thread Dominique Devienne
On Fri, Jan 2, 2015 at 9:17 PM, YuGiOhJCJ Mailing-List < yugiohjcj-mailingl...@laposte.net> wrote: > Oh, I have not read correctly the documentation of the task: > "multiple target files are specified using a nested element" > I always recommend using Ant-Contrib's task instead of Ant's older

Re: kicking my butt with something very simple

2014-12-05 Thread Dominique Devienne
On Fri, Dec 5, 2014 at 8:09 PM, Earl Hood wrote: > On Fri, Dec 5, 2014 at 1:04 PM, Dominique Devienne > wrote: > > Strange, I'd have thought the XML parser would choke before you even got > to > > running something. > is one of those reserved characters in XML, tha

Re: kicking my butt with something very simple

2014-12-05 Thread Dominique Devienne
On Fri, Dec 5, 2014 at 8:04 PM, Dominique Devienne wrote: > There's also a more powerful way to redirect/filter/etc... using > https://ant.apache.org/manual/Types/redirector.html but the above should > do I think. --DD > Note that sorting can be done by the FilterChain: https

Re: kicking my butt with something very simple

2014-12-05 Thread Dominique Devienne
On Fri, Dec 5, 2014 at 7:41 PM, Eric Fetzer wrote: > > Note that I also tried: > > > > > > > > Which produced: sort: stat failed: >: No such file or directory Strange, I'd have thought the XML parser would choke before you even got to running something. > is one of those reserved c

Re: Need help with ANT javac classpath

2014-09-15 Thread Dominique Devienne
On Mon, Sep 15, 2014 at 5:15 PM, WebServices Development < webservices_developm...@csx.com> wrote: > P.S - I tried adding includejavaruntime="false" and > includeantruntime="false" attributes - both together as well as > individually - to the javac task - but I still get the error. The error >

Re: determine a list of class files to delete based on java files

2014-05-12 Thread Dominique Devienne
On Sun, May 11, 2014 at 7:56 PM, Stefan Bodewig wrote: >> I need to figure out a way to get a list of the java files in my >> structure and then delete the corresponding class files. Just be aware/remember that it's not 1-to-1, i.e. a single .java can generate more than on .class file, because of

Re: avoid duplicates with pathconvert and mappers

2013-04-15 Thread Dominique Devienne
On Mon, Apr 15, 2013 at 11:22 AM, Patrick Martin wrote: > However, the id 1 gets duplicated. Is there anyway I can avoid this dupe? > > The pathconvert attribute preserveduplicates="false" does not bring any > help here. also tried the uniq filter in a filtermapper, without luck. > If it's like

Re: compilearg

2012-06-20 Thread Dominique Devienne
On Mon, Jun 18, 2012 at 3:43 AM, Michael Tabak wrote: > I'm running Ant 1.8.2. I have a line in my build file to override the > destination directory: >   >     >    >     > > > This is in my compile target. If I replace "-d output1.6" with -version or  > -verbose,

Re: Command-Line execution of a third-party task

2012-03-23 Thread Dominique Devienne
On Fri, Mar 23, 2012 at 2:28 PM, Andy Stevens wrote: > The way I read his original message, Mike just wants to run sonar > against a project with an existing build.xml and was asking about > direct use from the command line only because he isn't able/allowed to > change the build.xml. But I wasn't

Re: Command-Line execution of a third-party task

2012-03-23 Thread Dominique Devienne
On Fri, Mar 23, 2012 at 12:21 PM, Stefan Bodewig wrote: > http://janmaterne.wordpress.com/2008/11/07/ant-javafront-start-ant-tasks-from-the-command-line/ > http://janmaterne.wordpress.com/2008/11/11/ant-javafront-start-ant-tasks-from-the-command-line-2/ I stand corrected Stefan, thanks. And this

Re: Command-Line execution of a third-party task

2012-03-23 Thread Dominique Devienne
On Fri, Mar 23, 2012 at 9:29 AM, Andy Stevens wrote: > Why not just create your own mybuild.xml and run that with ant -f ? > No need to alter the original build.xml, but you could always import it to > take advantage of any initialise targets etc. Note that Mike mentioned executing *tasks* from t

Re: Command-Line execution of a third-party task

2012-03-23 Thread Dominique Devienne
On Fri, Mar 23, 2012 at 3:44 AM, Mike Van wrote: > How would you execute a third-party-task from the command-line? > [...] > Is there a similar mechanism that could be used to pass in a 3rd party > ant-task as an argument for an ant build along with its required properties? I don't think there is

Re: Feature request: if/unless on command line arguments

2012-02-17 Thread Dominique Devienne
>>  From: "Steele, Richard" >> I think it would be convenient to have command-line arguments take optional >> if/unless attributes that work much like those on targets. On Fri, Feb 17, 2012 at 2:06 PM, Vimil Saju wrote: > Can't you use the if task from ant-contrib? Not "inside" tasks, no, AFAIK

Re: Target Execution Sequence

2011-10-31 Thread Dominique Devienne
On Sun, Oct 30, 2011 at 2:47 AM, Rhino wrote: >  I'm having a perplexing problem and I'm hoping someone here can help me > understand whatever I'm missing. I was moderately fluent with Ant at one > point but I've been away from it a  while and have probably just forgotten > some fundamental that I

Re: variable number of link element in javadoc

2011-08-23 Thread Dominique Devienne
On Mon, Aug 22, 2011 at 5:14 PM, Shawn Castrianni wrote: > When using fileset, I sometimes need to programmatically set my includes at > build time.  Therefore, I use the includes attribute on fileset allowing me > to build up a list of includes separated by commas into an ANT property and > th

Re: Are multiple targets run in order, or in parallel?

2011-08-09 Thread Dominique Devienne
On Mon, Aug 8, 2011 at 12:33 PM, Echlin, Robert wrote: > Hi guys, > Thanks, Dominique, for the reminder about order of execution being dependent > on dependencies. > I remember that about dependencies declared in a target. > I am surprised that there isn't a line in the "Running Ant" page referri

Re: Are multiple targets run in order, or in parallel?

2011-08-08 Thread Dominique Devienne
On Mon, Aug 8, 2011 at 10:59 AM, Echlin, Robert wrote: >   "ant target1 target2 target3" > Will target1 be guaranteed to be complete before target2 is run? Yes, with two "but"s: 1) If you use the default executor. If you don't know what an executor is, you most likely are :) 2) If target1 declare

Re: Equivalent:

2011-07-08 Thread Dominique Devienne
On Fri, Jul 8, 2011 at 10:55 AM, Perrier, Nathan wrote: > Agreed, I try to use antcall as little as possible.  It also tends to > eat up memory if you have a ton of antcall tasks in a large build > framework. Yep. Large builds tend to be hierarchical and I used lots of , which forks new Ant insta

Re: Equivalent:

2011-07-08 Thread Dominique Devienne
On Fri, Jul 8, 2011 at 10:27 AM, Perrier, Nathan wrote: > No, because antcall creates a new project underneath the hood, whereas > runtarget (antcontrib task) does not. I would add that (and as well in fact) goes against the Ant philosophy of having declarative builds using targets with proper

Re: taskdef A class needed by class X cannot be found: Task

2011-07-08 Thread Dominique Devienne
On Fri, Jul 8, 2011 at 7:02 AM, Robert Larsen wrote: > I am having a problem with an Ant installation on my Ubuntu 11.04. > > I have a task which I have made myself and it has always worked (and > actually still does) but now I am getting the below error: [...] > Any ideas what I should do next ?

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

2011-06-30 Thread Dominique Devienne
On Thu, Jun 30, 2011 at 8:31 AM, Dominique Devienne wrote: > On Thu, Jun 30, 2011 at 6:51 AM, Steve Amerige wrote: >> I'm looking for the authoritative specification within Ant for the value of >> the name attribute > PS: Also keep in mind that property expansion d

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

2011-06-30 Thread Dominique Devienne
On Thu, Jun 30, 2011 at 6:51 AM, Steve Amerige wrote: > I'm looking for the authoritative specification within Ant for the value of > the name attribute as in: > > > > > > and so forth.  I can't find within the Ant manual any BNF that defines what > a valid name is allowed to be. Anything goes

Re: Programatic ANT: Export Build.xml

2011-06-17 Thread Dominique Devienne
On Thu, Jun 16, 2011 at 11:31 PM, Dark Before Dawn wrote: > I would like to use apache-ant-1.8.2 in JavaSE, to generate build.xml Files > dynamically. Is there a way to export a Project Object as xml File via > Writer/Stream? Nope. And I don't think it's possible (or easy) to do either, at least

Re: [Ant customizable task]dependencies

2011-06-10 Thread Dominique Devienne
On Fri, Jun 10, 2011 at 4:22 AM, wayne wrote: >     Is anybody know how to add dependencies to a customizable ant task. Not sure what you mean here. >         classname="org.apache.commons.javaflow.ant.AntRewriteTask"> >                                 >                                         >

Re: ant execute Windows del command

2011-05-12 Thread Dominique Devienne
On Thu, May 12, 2011 at 2:35 PM, shi chuan wrote: > thanks for the quick reply, now i tried the one below, still no luck, > anything else that could be wrong? My bad, it's /c, not -c. --DD D:\>touch foo D:\>touch bar D:\>dir /B foo bar foo bar D:\>cmd /nologo /c del foo bar D:\>dir /B foo bar Fi

Re: ant execute Windows del command

2011-05-12 Thread Dominique Devienne
On Thu, May 12, 2011 at 2:17 PM, shi chuan wrote: > That's a single of name "-c del", not two args "-c" and "del". Use either line="-c del" or two . --DD - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additiona

Re: ant execute Windows del command

2011-05-12 Thread Dominique Devienne
On Thu, May 12, 2011 at 1:45 PM, shi chuan wrote: > Hi guys, I am trying to apply a task using Windows executable 'del' to > delete files, the reason I don't use is because it will delete even > if things are up to date. > However this runs into an error: cannot run program 'del'...error=2 > > a

Re: Weird observation with echoxml w.r.t. order of node text

2011-04-08 Thread Dominique Devienne
72 * from the build file instead of objects. 73 * 74 * Code heavily influenced by code written by Dominique Devienne. 75 * 76 * @since Ant 1.7 77

Re: Weird observation with echoxml w.r.t. order of node text

2011-04-08 Thread Dominique Devienne
On Fri, Apr 8, 2011 at 11:10 AM, Parag Doke wrote: > Notice that the "text outside the child node" appears before the child > node itself, though it was after the child node in the original input to > echoxml task. I vaguely recall that when I wrote (Stefan is the one who introduced it into Ant

Re: Question on Clearcase task - ccupdate

2011-03-24 Thread Dominique Devienne
On Thu, Mar 24, 2011 at 11:20 AM, Savoy, Melinda wrote: > I have an ANT script that is being used to update the CLEARCASE view that was > created by a former employee. > The ANT script that I am using has been working for years. > Yesterday I executed the BUILD.XML ANT script and I got a PERMISSI

Re: load properties based on deployment environment

2011-03-22 Thread Dominique Devienne
On Tue, Mar 22, 2011 at 10:29 AM, neubyr wrote: > I want to set some deployment specific string replacements in a > project. For example, the project contains values like > {{{ >        connectionurl = "http://localhost"; >        connectionport = "12345" > }}} > > These values need to be changed

Re: How to reference a custom type via refid?

2011-03-17 Thread Dominique Devienne
On Thu, Mar 17, 2011 at 3:12 AM, Antoine Levy-Lambert wrote: > You may want to override this default method to do some extra checks, > for instance to throw exceptions if the build file writer uses both refid > and other attributes or nested elements. Indeed. I've always thought this is one of th

Re: apply task with multiple filename mappings - how?

2011-02-18 Thread Dominique Devienne
On Fri, Feb 18, 2011 at 4:11 PM, david__schmidt wrote: > but how can I do multiple mappings - multiple variations on the filename per > invocation?  Or is there another way to approach the problem? I can't see a way to do it with either. Peter's [1] supports multiple mappers and he even has an

Re: Use/Expand property inside a CDATA section in a replacetoken element

2011-02-09 Thread Dominique Devienne
On Wed, Feb 9, 2011 at 1:15 PM, Michael Hüttermann wrote: > how can I use/expand properties inside a cdata section in a replacetoken > element? The doc says http://ant.apache.org/manual/Tasks/replace.html both / support an expandProperties attribute (since 1.8.0), but also says it defaults to

Re: How to retrieve IP address

2011-01-31 Thread Dominique Devienne
On Mon, Jan 31, 2011 at 2:03 AM, hezjing wrote: > May I know if it is possible to retrieve the IP address of the running > server in Ant? Google found it for me in Antelope, a 3rd party collection of Ant tasks: http://antelope.tigris.org/nonav/docs/manual/bk03ch16.html Might be possible with pu

Re: Possible to dynamically reference a property?

2011-01-25 Thread Dominique Devienne
On Tue, Jan 25, 2011 at 4:10 PM, wrote: > So doesn't that mean it would NOT be part of the normal distrib? - Dave A Google search turned up this post, but he builds it from source, http://wdarby.blogspot.com/2010/06/using-antlib-props-in-ant-18.html I suppose 'props' can be considered an AntLib

Re: Possible to dynamically reference a property?

2011-01-25 Thread Dominique Devienne
On Tue, Jan 25, 2011 at 4:10 PM, wrote: > ON the doc it mentions "external" to ANt ... [...] > So doesn't that mean it would NOT be part of the normal distrib? - Dave You might be right. Sorry, can't help more on this particular topic, as I mentioned I've never done it myself. The easiest is to

Re: Possible to dynamically reference a property?

2011-01-25 Thread Dominique Devienne
On Tue, Jan 25, 2011 at 3:39 PM, Dominique Devienne wrote: > On Tue, Jan 25, 2011 at 3:32 PM,   wrote: >> Then I pass in this command line argument to my script "-Denv=...".  So, in >> my ant script, how do I dynamically access a property using the ${env} >> par

Re: Possible to dynamically reference a property?

2011-01-25 Thread Dominique Devienne
On Tue, Jan 25, 2011 at 3:58 PM, wrote: > Thanks, Dominique.  The nested properties (props) task seems like it will do > the job.  However, do you know where to download this thing?  The links don't > seem to have anything > > http://ant.apache.org/manual/properties.html > http://ant.apache.org

Re: Possible to dynamically reference a property?

2011-01-25 Thread Dominique Devienne
On Tue, Jan 25, 2011 at 3:32 PM, wrote: > Then I pass in this command line argument to my script "-Denv=...".  So, in > my ant script, how do I dynamically access a property using the ${env} param? >  For example, if "-Denv=dev" is passed in to the command line, what is a > generic way of acce

Re: Using shell command in ANT script

2010-11-24 Thread Dominique Devienne
On Wed, Nov 24, 2010 at 3:48 AM, wrote: > I want to use the following shell command in my build.xml file > ls -l ../../../jobs/ | awk '{ print $9 }' > content.txt AFAIK, the 9th field of ls -l is the filename, so your "ls -l path | awk '{ print $9 }'" is better replaced with simply "ls -1". The

Re: Search for properties file in parent directories

2010-11-11 Thread Dominique Devienne
On Thu, Nov 11, 2010 at 4:33 AM, Ludwig, Michael wrote: > On the command line, I can instruct ant to go searching for a build > file by climbing up the directory tree: [...] > From within a script, I can instruct ant to load properties from a > file using . > > Is there a way to instruct Ant to go

Re: Problems creating my own ant task

2010-11-04 Thread Dominique Devienne
On Thu, Nov 4, 2010 at 3:09 PM, abridgel wrote: > We need to write our own tasks because of portability issues. So I need to be > able to source in the task somehow > > I created the jar and put the classes and antlib.xml in the same directory > however when I try to pull it in it is complainning

Re: exclude A/a if B/a exists

2010-11-04 Thread Dominique Devienne
On Wed, Nov 3, 2010 at 7:52 PM, Daniel Becroft wrote: > [...] However, I only want to apply this selector to a subset of the entries > in the fileset. [...] > I want to select everything, but only apply the selector to > anything under \alpha (everything under \beta and \gamma should be selected

Re: exclude A/a if B/a exists

2010-11-03 Thread Dominique Devienne
On Wed, Nov 3, 2010 at 4:49 PM, Daniel Becroft wrote: > I am trying to construct a definition to exclude any files in > /alpha if the same filename exists in /beta. See the selector in the manual. --DD PS: I think that's the 3rd time I answered this question recently ;) --

Re: Copy from A -> B based on file structure of C?

2010-11-02 Thread Dominique Devienne
On Mon, Nov 1, 2010 at 7:03 PM, kerryland wrote: > I'd like to copy files from one directory to another, but only those files > that exist in a given directory. Look at the file mapper, as David suggested. --DD - To unsubscribe

Re: echo a property

2010-10-28 Thread Dominique Devienne
On Thu, Oct 28, 2010 at 9:15 AM, ritchie wrote: >  I created  a java class to read that property from the properties file and > then passed it on to another java class which does the deployment. I am not > sure whether this is  a limitation in ant. You can call it a limitation of sort, sure. But

Re: Property Location with path seperator / irrespective of OS

2010-10-27 Thread Dominique Devienne
On Wed, Oct 27, 2010 at 6:57 AM, Raja Nagendra Kumar wrote: > Is it possible to have ant property with location attribute, always return > location with '/' irrespective of OS. See . --DD - To unsubscribe, e-mail: user-unsubscr.

Re: Delete files from dir-1 where file name same as a file in dir-2

2010-09-28 Thread Dominique Devienne
On Mon, Sep 27, 2010 at 3:32 PM, Michael Giroux wrote: > [...] If cases where package and class names are the > same, we only want to include the sources from the hand-coded src > tree, so we need to delete corresponding files from the generated src > folder. [...] See http://ant.apache.org/manua

Re: "available" appears to get confused if I use "-f buildfile"

2010-08-19 Thread Dominique Devienne
On Thu, Aug 19, 2010 at 3:47 PM, KARR, DAVID (ATTSI) wrote: >       your file="review" will be resolved against the current 'basedir' of the build (the basedir attribute of the top-level element), and the 'basedir' of an imported file is affected by the importer (which may import it indirectly t

Re: Bootstrap script, fetch prerequisites

2010-07-29 Thread Dominique Devienne
On Thu, Jul 29, 2010 at 4:03 PM, Michael Ludwig wrote: > Dominique Devienne schrieb am 29.07.2010 um 08:42 (-0500): >> I believe that bootstrapping is possible, but I think it would require >> changes in Ant to possibly restart a new VM using new JARs for >> example, or at le

Re: Bootstrap script, fetch prerequisites

2010-07-29 Thread Dominique Devienne
On Thu, Jul 29, 2010 at 3:18 AM, Ludwig, Michael wrote: > What's the best way to bootstrap an Ant script installation? [...] > (One thing I personally dislike is checking JARs into your version control > system, [...] Well, Ant has no built-in bootstrap mechanism. Build scripts are typically un

Re: Detect command line properties

2010-03-01 Thread Dominique Devienne
On Mon, Mar 1, 2010 at 10:28 AM, Shawn Castrianni wrote: > Is there a way to tell the difference between ant properties specified by the > user on the command line versus those that come from property files are or > hardcoded in the build.xml?  I have an ant build that execs to another ant > bu

Re: I think the answer to this question is no

2010-01-19 Thread Dominique Devienne
On Tue, Jan 19, 2010 at 11:18 AM, Stefan Bodewig wrote: > On 2010-01-19, Mitch Gitman wrote: >> It seems that, since the project knows all its listeners to notify >> them of an event, it wouldn't be so hard to add a method to query all >> the listeners for their log level and then return the max

Re: I think the answer to this question is no

2010-01-18 Thread Dominique Devienne
On Sun, Jan 17, 2010 at 11:30 PM, Mitch Gitman wrote: > Is there any programmatic mechanism within Ant to arbitrarily query what the > current log level is? [...] > > What I'd like to do is invoke getProject().log("Some message", > Project.MSG_VERBOSE) only if the current log level is verbose. No

Re: Getting the name of the only file in a directory

2010-01-07 Thread Dominique Devienne
On Thu, Jan 7, 2010 at 4:02 PM, leroybrownbpj wrote: > I'm working on a project currently where we need to deploy an artifact to a > server via an ant task which takes the fully qualified file path and name. > When this script runs the artifact will be in a directory like this: > > location/deploy

Re: Ant vs Maven vs Eclipse, IntelliJ, NetBeans – Exploring Incremental Builds

2009-10-01 Thread Dominique Devienne
On Thu, Oct 1, 2009 at 10:17 AM, David Booth wrote: > We’re looking into incremental builds — trying to document the differences > in popularity & productivity between using tools like Ant and Maven versus > IDEs.  We haven’t seen a study like this before, and we’ve already received > responses fr

Re: behavior on properties... is it a bug? or by design?

2009-09-25 Thread Dominique Devienne
On Fri, Sep 25, 2009 at 9:24 PM, Melih Onvural wrote: > I noticed that when I run targets in a loop, that they don't > know of properties that were set in previous targets or in targets > which are dependencies of the given target. As an example: Yep, by design. uses a different Project for eac

Re: How to throw error if two files not equal?

2009-09-25 Thread Dominique Devienne
On Fri, Sep 25, 2009 at 4:04 PM, Chris wrote: > [...] and throw an error See the task. --DD - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org

Re: calculating relative paths

2009-09-08 Thread Dominique Devienne
On Tue, Sep 8, 2009 at 1:41 AM, Andy Stevens wrote: > Is there an easy way to calculate an arbitrary relative path between two > files? Indirectly, with , which computes the rel. path between a set of files and the jar. May be subverted into doing it I think. --DD ---

Re: Delete N directories that match a regexp

2009-09-07 Thread Dominique Devienne
On Mon, Sep 7, 2009 at 6:28 AM, Daniel Steinmann wrote: > Matt Benson wrote: >> (given same dirset id=ds) >>   >>     >>   >>   ${includes} >>   >>     >>   >>   > But I have problems with the to= part of the regex pattern on Windows. The > file.separator on Windows is the backslash, which i

Re: Yet another basic question about Ant

2009-09-01 Thread Dominique Devienne
On Tue, Sep 1, 2009 at 10:20 AM, veena pandit wrote: > I have been given the task of converting Make files to Ant.  I don't know > Make and I don't know Ant. > But I am going to try.  There are 3 make files in the project.  The first > one includes another make file > like so: > include makefile.${

Re: Basic question about ant

2009-08-28 Thread Dominique Devienne
On Fri, Aug 28, 2009 at 2:00 PM, veena pandit wrote: > I added it to the environment variable of path;  i still cant run ant from > the command line.  I am getting this error > while running it from eclipse. > > What am I doing wrong? Sorry, I'm not an IDE user, I can't help you there. --DD -

Re: Basic question about ant

2009-08-28 Thread Dominique Devienne
On Fri, Aug 28, 2009 at 12:53 PM, veena pandit wrote: >     >       path specified. This means wsgen in not in your path. If you can't run it at the command line, you can't run it inside Ant. Note that it's also best to use and rather than a single , as will convert them to absolute filenames

Re: Ant for C/C++?

2009-08-26 Thread Dominique Devienne
On Wed, Aug 26, 2009 at 2:00 PM, Martin Gainty wrote: > > then install the nar plugin which will natively compile your binaries for you > http://java.freehep.org/freehep-nar-plugin/index.html Interesting. Looks like they've basically forked / taken over maintenance of CppTasks, if I read http://ja

Re: Ant for C/C++?

2009-08-26 Thread Dominique Devienne
On Wed, Aug 26, 2009 at 12:47 PM, Robin Parker wrote: > We have an application written in C/C++ (no java) that is currently > built using recursive clearmake, the source being stored in Rational > ClearCase.  The build process currently tries to build parts of the > application several times and so

Re: Selecting source files if they have been compiled

2009-08-21 Thread Dominique Devienne
On Thu, Aug 20, 2009 at 9:08 AM, Stefan Walter wrote: > is there a good/elegant recipe for selecting those source files that javac > chose to compile? Yes. Introspect the .class files to know which source files they came from. Assumes debug info in left in the .class, but you can tell javac that

Re: Unable to delete file

2009-08-18 Thread Dominique Devienne
On Tue, Aug 18, 2009 at 10:21 AM, Martin Gainty wrote: > here in the US DOD vendors are converting their build.xml and implementing to > maven for: > offline repository(secure from middle-eastern attackers) > version-specific SCM tagging > security (ability to enforce SSH handshake to ftp via sftp

Re: Cross-compiler cpptasks

2009-07-13 Thread Dominique Devienne
On Mon, Jul 13, 2009 at 10:44 AM, Blank, Roman wrote: > I need to use a compiler that is not supported for the cc task. > > I'm currently using the  task for example and I need to > replace the gcc compiler with another one that is not supported on that list. >  Does anyone know of how I can do

Re: ant unable to find build.xml in another directory?

2009-07-10 Thread Dominique Devienne
On Fri, Jul 10, 2009 at 1:51 PM, starkc wrote: > I agree that it seems to be going into the wrong directory...but where could > it be going? Do you have a non-standard ant.bat somewhere in your path? Or from a different install? Have you tried calling the same DOS command at the DOS prompt to se

Re: ant unable to find build.xml in another directory?

2009-07-10 Thread Dominique Devienne
On Fri, Jul 10, 2009 at 1:28 PM, starkc wrote: > Using "-f [path-to-buildfile]" worked, but it seems like there should be a > way for me to do this without resorting to absolute paths.  Shouldn't this > be somewhat portable? You could try adding -verbose or -debug to the sub-Ant process. Maybe the

Re: ant unable to find build.xml in another directory?

2009-07-10 Thread Dominique Devienne
On Fri, Jul 10, 2009 at 10:31 AM, starkc wrote: > Here is the resulting log when running that new command with the -verbose > flag.  I dont believe I missed anything... > > maint: >     [exec] Current OS is Windows XP >     [exec] Executing 'cmd' with arguments: >     [exec] '/c' >     [exec] 'ant.

Re: ant unable to find build.xml in another directory?

2009-07-10 Thread Dominique Devienne
On Fri, Jul 10, 2009 at 9:35 AM, starkc wrote: > As part of compiling my projects in windows, I am required to execute a > second ant task, defined in my build.xml as follows: > > >         >   >   > Why exec rather than ? > compile correctly.  I have tried running ant with the -verbose and -de

Re: uptodate when it isn't

2009-07-02 Thread Dominique Devienne
On Thu, Jul 2, 2009 at 12:21 PM, Andy Stevens wrote: > I've got a bit of a puzzle with an uptodate task, and I'm hoping I've > just missed something obvious... To cut to the chase, do yourself a favor and use Ant-Contrib's . If you want to keep using , run in verbose mode (-v) and you should see

Re: run script after ant finished

2009-07-02 Thread Dominique Devienne
On Wed, Jun 24, 2009 at 11:17 AM, Shawn Castrianni wrote: > Correct, I need something after the ANT VM has exited. Weiji's solution of running Ant twice from the outside script is the easiest, provided it can be used, which may not be the case when it's an IDE that runs the Ant script for example.

Re: Tests and Failures

2009-06-30 Thread Dominique Devienne
On Tue, Jun 30, 2009 at 11:17 AM, Tennis Smith wrote: > This is about ant used with cruisecontrol, but I thought someone here may > know the answer.  Nobody seems to know on the cc mailer. > > I have a few tests that will be shown as "Tests: 0, Failures: 0, Errors: 0, > Duration: 0.0" in the dashbo

Re: loading ant macros from external files

2009-06-30 Thread Dominique Devienne
On Tue, Jun 30, 2009 at 8:46 AM, Sascha Ernst wrote: > I have a bunch of ANT macros which are currently used by 1 project only. > In the future they should be used by more projects. > So I'd like to put them in a separate ANT script and load this at runtime > into the > project ANT scripts. > > Ha

Re: run script after ant finished

2009-06-24 Thread Dominique Devienne
On Wed, Jun 24, 2009 at 10:39 AM, Shawn Castrianni wrote: > This online presentation is hanging after slide 2.  Can I get this > information some other way or can I download the presentation locally? Worked for me (in FireFox). But a Listener or a Logger are part of the Ant VM, so it doesn't you

Re: Problem Reusing Condition API

2009-06-24 Thread Dominique Devienne
On Wed, Jun 24, 2009 at 5:46 AM, Mithun Gonsalvez wrote: >> This adds a nested tag, while you add a one. >> You need to have an add() method instead. I don't recall the exact rules >> though. >  The tag when evaluated to true, will set a property [which i > want to avoid] >  Instead i would lik

Re: Confused at build error

2009-06-24 Thread Dominique Devienne
On Wed, Jun 24, 2009 at 2:40 AM, dori wrote: > Hello, i have a small ant build file that i wrote a little while ago, it's > always worked fine but now it has started to give me errors. With the -debug > arg i get > > [javac]Compiling 2 source files > > [javac]     sourcefile1.java >    [javac]

Re: Problem Reusing Condition API

2009-06-23 Thread Dominique Devienne
On Tue, Jun 23, 2009 at 7:55 AM, Mithun Gonsalvez wrote: > public class TestCheck extends MacroDef { Why derive from MacroDef rather than simply Task? >    public static class MySingleArgument { > >        List conditions = new ArrayList(); > >        public void addConfiguredCondition(Condition

Re: Progessbar on the console?

2009-06-18 Thread Dominique Devienne
On Thu, Jun 18, 2009 at 8:22 PM, Michael Ludwig wrote: > Dominique Devienne schrieb am 18.06.2009 um 19:42:12 (-0500): >> As you may have read, Ant redirects java.System.out to intercept all >> println calls to send them to a Logger and zero or more listeners. But >> it also d

Re: Progessbar on the console?

2009-06-18 Thread Dominique Devienne
On Thu, Jun 18, 2009 at 6:35 PM, Michael Ludwig wrote: > From googling, I know that Ant cannot display a progress bar on the console. > [snip] > C:\ :: \dev\Perl\progressbar.pl > 76% [                ] > [snip] > Would that be very complicated to do i

Re: delete directory structures older than X days

2009-06-17 Thread Dominique Devienne
On Tue, Jun 16, 2009 at 11:30 AM, Shawn Castrianni wrote: > I needed something similar.  Both of our requirements requires the age of a > file/directory to be determined.  Therefore, the easiest approach I found was > to write my own ANT condition.  By writing a condition, you can use it inside

Re: Doing Ant builds

2009-06-12 Thread Dominique Devienne
On Fri, Jun 12, 2009 at 2:58 PM, 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

Re: Doing Ant builds

2009-06-12 Thread Dominique Devienne
On Fri, Jun 12, 2009 at 11:32 AM, Eric Fetzer wrote: > "solution files" - if you're building .NET, go look at NAnt instead of Ant. > The difference is similar to that of a Volkswagon Beetle vs. Rolls Royce... Me think in the end more Beetles were sold, for far more total money, than Rolls Royce's

Re: echoxml task append attribute useless?

2009-06-01 Thread Dominique Devienne
On Mon, Jun 1, 2009 at 1:49 AM, Shawn Castrianni wrote: > The echoxml task has an append attribute which seems useless to me.  Since > the children xml tags of the tag itself is used for echoing AND > those children xml tags are part of the ANT build file too, they must be > valid xml content.

Re: clone fake environment variables as real ones for exec

2009-05-28 Thread Dominique Devienne
On Thu, May 28, 2009 at 1:27 AM, Shawn Castrianni wrote: > I would prefer to somehow tell ant to select all properties that start with > env. prefix and add them to the environment of the exec task.  Is this > possible somehow with macros, property selectors, or something else? This is somethin

Re: Using ant to change the compiler for javac tasks

2009-05-22 Thread Dominique Devienne
On Thu, May 21, 2009 at 8:30 AM, Frances Laverty wrote: > I'm trying to set up CruiseControl to build my project, and the latest > version of cc requires java 5.  Unfortunately our project must be build with > java 1.4, so i've been trying to incorporate the compiler setting into my > build.  I

Re: String manipulation (parsing / padding)

2009-05-04 Thread Dominique Devienne
On Mon, May 4, 2009 at 10:27 AM, Beth Hechanova wrote: > I have been using NAnt lately and it has some built in functions for > doing this sort of string manipulation.  Now I need to implement the > same logic in Ant scripts.  I have been looking for something similar in > Ant, but I have yet to c

Re: Delete task should be failing for UNC path that does not exist

2009-02-26 Thread Dominique Devienne
On Thu, Feb 26, 2009 at 12:57 PM, Dave wrote: > Going by the first line of this, Ant should fail if the specified file or > directory does not exist, no? The manual is right, and my memory is faulty, that's all ;-) I think I always use quiet="true"... --DD ---

Re: Delete task should be failing for UNC path that does not exist

2009-02-26 Thread Dominique Devienne
On Thu, Feb 26, 2009 at 12:09 PM, Dave wrote: > However, I'm still curious as to why delete is silent when the UNC path > passed to it does not exist? I think that's true of any dir, not just UNC ones. --DD - To unsubscribe, e-m

  1   2   3   4   5   6   7   8   >