Re: Storing RegEx In Properties Files?

2011-06-25 Thread wolfgang haefelinger
> Is this possible? Properties are strings, a regular expression is a string - what are your concerns? Something popping up is that '#' and '!' start a comment in a property string. You need to make sure to escape them. // Wolfgang On Sat, Jun 25, 2011 at 1:23 AM, Tennis Smith wrote: > Hi, > >

Re: Ant properties

2011-06-16 Thread wolfgang haefelinger
Also ab damit in unsere Sammlung der "Klassiker" und wie man diese mit Flaka angeht .. ! On Wed, Jun 15, 2011 at 4:03 PM, thapelo.kekana wrote: > -- Forwarded Message --- > > > Hi, > > I have a issue retrieving a value for a dynamically created property. > Below I'm trying generat

Re: [Ant customizable task]dependencies

2011-06-11 Thread wolfgang haefelinger
>> i try to use  fileset  to add these dependencies. but it seems wrong. I bet he is missing transitive dependencies: Just let task "javaflow" depend on " commons-javaflow-1.0-SNAPSHOT.jar" and Ant would automatically add those other dependencies. On Fri, Jun 10, 2011 at 3:47 PM, Dominique Devien

Re: How change variable based on environment variable value

2011-06-08 Thread wolfgang haefelinger
operty. 3. Using Flaka's choose task .. ${JOF} Similar to task, just without power of regular (or glob) pattern matching. And, of course, there are and .. // Wolfgang On Wed, Jun 8, 2011 at 3:01 PM, wolfgang haefeling

Re: How change variable based on environment variable value

2011-06-08 Thread wolfgang haefelinger
Hi, >>     >>       >>     This would also enable the "build system settings" if environment variable BUILD_BOX is set to "false". Would be better to check existence and then variable's content as well - just to avoid any confusion. A second thought on maintaining such a script later on - you wo

Re: Newbie question, error fetching dependences

2011-06-06 Thread wolfgang haefelinger
http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22tomcat%22%20AND%20a%3A%22jasper-compiler%22 There is no POM for version 4.1.36 On Mon, Jun 6, 2011 at 11:50 AM, Fabio Souto wrote: > Hi, > > When I try to fetch the dependences with ant -f fetch.xml -Ddest=system I get > the following error: >

Re: How to reference elements in custom task

2011-03-14 Thread wolfgang haefelinger
Jon, >     This attribute of yours, "classpathref" is not a standard attribute: http://ant.apache.org/manual/Tasks/common.html > I've been searching for examples or forum posts related to this but everything > I've found  isn't working. How about sharing what you've found and what exactly is no

Re: Problems with apache.

2011-03-14 Thread wolfgang haefelinger
Try also 'type -a'. For example, on my machine $ type -a ant ant is /opt/local/bin/ant ant is /usr/bin/ant Then run the one supposed to be 1.8.2. If this still runs 1.7.2, try something like /bin/sh -x /path/to/ant/bin/ant [args] to see what actually happens. // Wolfgang On Mon, Mar 14, 2011

Re: Regular expression to match non-breaking spaces

2011-03-12 Thread wolfgang haefelinger
Peter, >>   > flags="g" byline="true" encoding="utf-8" /> I assume that Ant's XML parse will digest your character reference. In effect you are doing nothing more than Have you tried something like instead? // Wolfgang On Sat, Mar 12, 2011 at 12:48 AM, Brian Agnew wrote: > You might want

Re: make a string lowercase

2011-01-11 Thread wolfgang haefelinger
> The simplest is to use Antelope tasks:   > http://antelope.tigris.org/nonav/docs/manual/bk03ch13.html Rather simple is also which you would get by enabling Flaka's [1] property helper. Also checkout [2] for many other 'String' properties and functions working on (String) objects. For exampl

Re: conditions in antlib?

2010-11-12 Thread wolfgang haefelinger
(namespace) regardless whether using 1.8 or 1.7. (or older). Regards. On Fri, Nov 12, 2010 at 2:49 PM, wolfgang haefelinger wrote: > Hello Michael, > > have you given something like > > >   > > > > > On Fri, Nov 12, 2010 at 2:04 PM, Ludwig, Michael >

Re: conditions in antlib?

2010-11-12 Thread wolfgang haefelinger
Hello Michael, have you given something like On Fri, Nov 12, 2010 at 2:04 PM, Ludwig, Michael wrote: > Moin Wolfgang, > >> I want to provide a *single antlib* with the following requirements: >> (a) must work with Ant 1.7.x and newer >> (b) uses  appearing to be a 1.8.x feature. > >> do

conditions in antlib?

2010-11-12 Thread wolfgang haefelinger
Hello, I want to provide a *single antlib* with the following requirements: (a) must work with Ant 1.7.x and newer (b) uses appearing to be a 1.8.x feature. How would I do this? In other words, don't we need a conditional component-, type-, macrodef and taskdef definition?? Something like

Installing Ant's own PropertyHelper

2010-11-11 Thread wolfgang haefelinger
Hello, $ ant -f testme.xml Buildfile: testme.xml BUILD FAILED testme.xml:4: Could not create type defaulthelper as the class class org.apache.tools.ant.PropertyHelper has no compatible constructor Rather unexpected! Especially when developing and "ant unit testing" new proper

Installing PropertyHelper

2010-11-11 Thread wolfgang haefelinger
Hello, I'm trying to install my own property helper class package org.example; public class MyPropertyHelper extends org.apache.tools.ant.PropertyHelper {} as shown in [1] along with a property def before and some calls after the "switch" Turns out that all properties are .. gone!

Re: ANT for dummies

2010-05-30 Thread wolfgang haefelinger
Bruce, >> How in heaven can I install ANT? How in heaven is it possible to make a Phd which such a little "willingness-to-dig-into-something-new"? >> Hopefully, someone is able and willing to sit for a good while and write a detailed procedure to get this done. You are the perfect candidate to

Re: AW: http request handling

2010-03-28 Thread wolfgang haefelinger
on is awful. > > I believe that CI servers do similar jobs very well, but to me it is an > overkill. > > Robert. > > wolfgang haefelinger a écrit : >> >> Robert, >> >> to get a decent response, it would be wise to elaborate in your own >> words w

Re: AW: http request handling

2010-03-28 Thread wolfgang haefelinger
Robert, to get a decent response, it would be wise to elaborate in your own words what you would like to (a) achieve and (b) how this could be done with ant. To me, it looks like this: 1. You have a project that you can build with Ant; so there is a build.xml with some targets (clean, compile, t

Re: Ant xmlproperty question,Please help me

2010-03-26 Thread wolfgang haefelinger
Amasha, there is 1) .classpath - an XML file 2) build.xml - also an XML file 3) ${basedir} - your build file's folder 4) ${ant.file} - your build file 5) http://ant.apache.org/manual/CoreTasks/style.html - a task allowing you to execute a XSLT stylesheet That's pretty all you need to run a X

ANNOUNCEMENT: Flaka 1.01 released

2010-02-24 Thread wolfgang haefelinger
February 24th, 2010 - The Flaka project is pleased to announce the release of Flaka 1.01, the first release of Flaka. Flaka is an extension for Ant. A main project goal of Flaka is the simplification of writing a build script. Flaka provides: 1. an expression language (Java Unified Expression Lan