AW: Problems with optional tasks

2005-09-28 Thread Jan.Materne
Your output of java.class.path is /usr/local/ant/lib/ant-launcher.jar:/usr/local/ant/lib/ant-jdepend.jar:/usr/local/ant/lib/ant-trax.jar:/usr/local/ant/lib/ant.jar:/usr/local/ant/lib/ant-starteam.jar:/usr/local/ant/lib/ant-launcher.jar:/usr/local/ant/lib/ant-stylebook.jar:/usr/local/ant/lib/ant-ja

AW: Getting Javascript working with ANT

2005-09-28 Thread Jan.Materne
What means "ant -diagnostics" ? Especially the part printing "java.class.path" - are your script libraries there? Jan >-Ursprüngliche Nachricht- >Von: Vo, David (Mission Systems) [mailto:[EMAIL PROTECTED] >Gesendet: Samstag, 24. September 2005 00:40 >An: user@ant.apache.org >Betreff:

AW: Executing DOS batch files

2005-09-28 Thread Jan.Materne
http://ant.apache.org/faq.html#batch-shell-execute Jan >-Ursprüngliche Nachricht- >Von: Jeffrey E Care [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 28. September 2005 17:47 >An: Ant Users List >Betreff: Re: Executing DOS batch files > >There is a very clear example in the manual for u

AW: How to set native OS variables?

2005-09-28 Thread Jan.Materne
Setting env cars AND RUNNING the application is no problem. Only setting the vars and quitting Ant - then the settings are lost. Jan >-Ursprüngliche Nachricht- >Von: Ninju Bohra [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 28. September 2005 22:58 >An: Ant Users List >Cc: Cels M. >Bet

AW: problem under Mac OS X + Eclipse

2005-09-28 Thread Jan.Materne
Let the MacOSX/Eclipse user print the path. Is xgettext in that? Maybe the path is not propagated. Jan >-Ursprüngliche Nachricht- >Von: Nicolas Vervelle [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 29. September 2005 08:42 >An: user@ant.apache.org >Betreff: problem under Mac OS X +

AW: problem under Mac OS X + Eclipse

2005-09-29 Thread Jan.Materne
More interesting is the path, Ant has PATH: ${env.PATH} Jan >-Ursprüngliche Nachricht- >Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 29. September 2005 10:03 >An: Ant Users List >Betreff: RE: problem under Mac OS X + Eclipse > > >Hi, > >on Windows Shell it's

AW: clarification for Fileset documentation?

2005-09-29 Thread Jan.Materne
The dir attribute is the root for a fileset. Why should the in/excludes be relative to something else? Jan >-Ursprüngliche Nachricht- >Von: Jakob Fix [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 29. September 2005 14:35 >An: Ant Users List >Betreff: clarification for Fileset docume

AW: clarification for Fileset documentation?

2005-09-29 Thread Jan.Materne
>would it not be possible to simply add a note (or an example) >that clarifies the change of context? just trying to be helpful. Sure. In http://ant.apache.org/manual/CoreTypes/fileset.html ? Something like Selects all files under the "src" directory exluding all files under "src/org".

AW: Copy files according ant property

2005-09-29 Thread Jan.Materne
Sure - it´s not in 1.6.5. is in svn head and maybe in 1.7 - but I think we will delete that task, especially because itself should now handle nested s, because paths are ResourceCollections. And Stefan added that just yesterday :-) Jan >-Ursprüngliche Nachricht- >Von: Tomáš Procházka

AW: AW: Copy files according ant property

2005-10-04 Thread Jan.Materne
Have you migrated now, Steve? ;-) Main idea is that does the copy stuff. Why should we have a ? Jan >-Ursprüngliche Nachricht- >Von: Steve Loughran [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 29. September 2005 17:57 >An: Ant Users List >Betreff: Re: AW: Copy files according

AW: Anyone used ANT to build EJB from Session Bean class

2005-10-04 Thread Jan.Materne
>Anyone used ANT (or ANT plus external tool, other than >Xdoclet), to automatically build an EJB from a java Session Bean class? Why no XDoclet? >I.e. Starting point is a java session bean class, but NO home >interface, NO remote interface and NO deployment descriptor. That´s the standard sce

AW: Ant source code spell check task

2005-10-04 Thread Jan.Materne
Do you know http://wiki.apache.org/ant/AntExternalTaskdefs ? Jan >-Ursprüngliche Nachricht- >Von: Rob Mayhew [mailto:[EMAIL PROTECTED] >Gesendet: Sonntag, 2. Oktober 2005 18:44 >An: user@ant.apache.org >Betreff: Ant source code spell check task > >Hello Everyone > >I have created an ant

AW: corrupt .png-files

2005-10-05 Thread Jan.Materne
Maybe you use filters on that binary files. Jan >-Ursprüngliche Nachricht- >Von: Wim Deprez [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 5. Oktober 2005 11:51 >An: user@ant.apache.org >Betreff: corrupt .png-files > >Dear List, > > >when I add .png's to a project of Eclipse (I need the

AW: Problem in building binary

2005-10-06 Thread Jan.Materne
A little bit more infos about your problem would help. Jan >-Ursprüngliche Nachricht- >Von: Vinod Chitrali [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 5. Oktober 2005 15:13 >An: user@ant.apache.org >Betreff: Problem in building binary > > > > >Dear . > I Vinod working

AW: AW: corrupt .png-files

2005-10-06 Thread Jan.Materne
>The only thing that happens to the pngs is that they get >JAR'ed in an archive together with some HTML's and such. I am >doing more "research", but if any help is most welcome. Have a look at the , and commands. Are there any nested s? Jan ---

AW: ant and nested property values

2005-10-07 Thread Jan.Materne
http://ant.apache.org/faq.html#propertyvalue-as-name-for-property Jan >-Ursprüngliche Nachricht- >Von: Holger King [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 7. Oktober 2005 09:58 >An: user@ant.apache.org >Betreff: ant and nested property values > >Hi Group, > >I'm just trying to bui

AW: Problem updating application.xml

2005-10-07 Thread Jan.Materne
-- modify --: , , , xmltask [1] Jan [1] http://ant.apache.org/external.html#xmltask >-Ursprüngliche Nachricht- >Von: Charl Gerber [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 7. Oktober 2005 12:47 >An: user@ant.apache.org >Betreff: Problem updating application.xml > >I have a 3rd

AW: Ant target not getting called

2005-10-07 Thread Jan.Materne
1. seems to be a CC question ... 2. would not the target fail 3. create a master buildfile 4. http://cruisecontrol.sourceforge.net/main/configxml.html#schedule Note: Only one builder is used for a given interval where modifications are found. Builds using the time attribu

AW: Help with choosing build property file

2005-10-07 Thread Jan.Materne
Because properties are immutable the more specific values in the first file are prefered. If that file does not exist (eg ${computername} is not set) it does not matter. You have to set the property 'computername'. On WinXP you can use a env variable: Jan >-Ursprüngliche Nachric

AW: Help with choosing build property file

2005-10-07 Thread Jan.Materne
You have to build something witch and ... or find a Java System property holding that value. Jan >-Ursprüngliche Nachricht- >Von: Rakesh Patel [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 7. Oktober 2005 17:16 >An: Ant Users List >Betreff: RE: Help with choosing build property file

AW: Used tasks

2005-10-14 Thread Jan.Materne
Just a quick shot ... E.g. it doesnt recognizes TaskContainers (needs recursive search), so constructs like 1 2 3 are found (only "parallel" will be found). Jan >-Ursprüngliche

AW: question about excluding packages

2005-10-14 Thread Jan.Materne
>I want to exclude a package, common, in my java application >and then execute javancss from ant. > >How can I exclude the common package in my source tree and >then run my javancss. > - + Jan -

AW: taskdef problem

2005-10-14 Thread Jan.Materne
http://ant.apache.org/manual/tutorial-writing-tasks.html#use1 Jan >-Ursprüngliche Nachricht- >Von: Matt Benson [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 12. Oktober 2005 16:44 >An: Ant Users List >Betreff: Re: taskdef problem > >set the classpath on the taskdef itself after having

AW: invoking the logger in the constructor

2005-10-14 Thread Jan.Materne
>> >> public class MyCustomTask extends Task { >> public MyCustomTask () >> { >> System.out.println("Instanciated"); >> } >> } >> > >regarding the exception in the constructor; send a stack trace. > > >Ant tasks normally use the log() operations, with different >levels of ve

AW: invoking the logger in the constructor

2005-10-17 Thread Jan.Materne
>The reason seem to be (but I haven't been able to confirm as I >have been busy in other matters) that the Task has a default >constructor (that I use). To use the 'log()' method, I'd need >to invoke a constructor with the node name I want to use. Task [1] is an abstract class not providing a c

AW: make properites of data in file

2005-10-17 Thread Jan.Materne
The easiest way is defining the Ant properties and creating the product.attributes. But you can parse that file and assign properties ... using your own task. Quick hack (without any error handling). It parses the first line to get the meta data and parses the second line for the data. After tha

AW: make properites of data in file

2005-10-17 Thread Jan.Materne
Dont know - have installed that long time ago and the jars havent any version info inside. But just install the versions described in the lib-dependency in the Ant manual. Jan >-Ursprüngliche Nachricht- >Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 17. Okt

AW: make properites of data in file

2005-10-17 Thread Jan.Materne
Retest... BSF 2.3.0 from http://cvs.apache.org/dist/jakarta/bsf/v2.3.0rc1/bin/bsf-bin-2.3.0.zip Rhino 1.5R4 from ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino15R4.zip Ant 1.6.5 Java 1.5.0-b64 bsf.jar + js.jar in %USERPROFILE%\.ant\lib --> same problem change rhino to 1.6R2 ftp://ftp.mozilla

AW: make properites of data in file

2005-10-17 Thread Jan.Materne
sure ... the javascript implementation is written against Ants Java API :-) Take the code, add some imports, type declarations ... Quick translation - add imports etc...: public class GetProductInfosTask extends Task { public static final String splitChar = ":"; private String prefix; /

AW: More default behavior expected

2005-10-17 Thread Jan.Materne
>When I create a task, the 'verbosity' level of the log is a >bit weird IMHO. >Namely, I find it weird that the fact that I set the switch >'-v' when I run the ant task is not kick up the verbosity >level of the task. A task doesnt have a log level. The log level is set for Ants logging facili

FYI: leafcutter - An API which allows you to execute Ant tasks from Java code

2005-10-18 Thread Jan.Materne
Haven´t worked with that - just found the page while visiting some blogs. Sayed Hashimi started a discussion [1] about build tools (primarily Ant+Maven). Suggestions in comments were combining Ant+Groovy. But also leafcutter [2] was listed. >From leafcutter´s homepage: ---8-<---8-<---8-<

AW: set property values using my own task

2005-10-18 Thread Jan.Materne
Where is the problem? in that order should work. Jan >-Ursprüngliche Nachricht- >Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 18. Oktober 2005 12:50 >An: user@ant.apache.org >Betreff: set property values using my own tas

AW: set property values using my own task

2005-10-18 Thread Jan.Materne
Shouldnt be a problem - have you tried that? - properties are immutable, once set they cant change - setNewProperty() knows that - props are set in order of their appearance -- command line -- time of load (doesnt matter if property-name/value, property-file or mytask.getProject.setNewProperty

AW: set property values using my own task

2005-10-18 Thread Jan.Materne
${user.dir} All java system properties are available as Ant properties. Jan >-Ursprüngliche Nachricht- >Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 18. Oktober 2005 16:10 >An: Ant Users List >Betreff: RE: set property values using my own task > >Hi, >

FYI: Ant-Explorer

2005-10-20 Thread Jan.Materne
A collegue of mine gave a link to Ant-Explorer. It visualizes build files - it´s targets and properties and how they are related to each other (target x uses props a,b,c; target x depends on target y; property b is derived from property d ...) Homepage: http://www.yworks.com/en/products_antexpl

AW: [Junit] throws NullPointerException

2005-10-21 Thread Jan.Materne
A quick view shows that before a call formatOutput() the test suite must be started: public void startTestSuite(JUnitTest suite) { doc = getDocumentBuilder().newDocument(); Maybe you add a log statement and retry? Jan >-Ursprüngliche Nachricht- >Von: Wunderlich, Patrick [m

AW: Issue using ReplaceRegExp

2005-10-21 Thread Jan.Materne
Regexp could something around /.*parts created: (.*)$/\1 But the "No supported regular expression matcher found" error message is more important. The matcher is part of JDK 1.4+, but because Ant is designed to run on JDK 1.2+ we have a word on library depenencies in the manual. Jan >

AW: Issue using ReplaceRegExp

2005-10-21 Thread Jan.Materne
>"[java] parts created:" >with "Size" >than How can I go ahead, should /\[java\] parts created:/Size/ >One more thing there is "ant-apache-regexp.jar" file in ant's >lib directory. Means, that JAR needs an other file - the regexp-implementation. >Just wanted to know that I need to upgr

AW: avoid subant on 'non-ant' directories

2005-10-24 Thread Jan.Materne
why not simply Jan >-Ursprüngliche Nachricht- >Von: Yves Willems [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 24. Oktober 2005 17:24 >An: 'Ant Users List' >Betreff: avoid subant on 'non-ant' directories > >Hi all, > >

AW: using fileset to only list the filenames and not the path+filename

2005-10-24 Thread Jan.Materne
First thought was simply adding a , but adds always the basedir. So you must also set the 'relative' to true. Jan --- build.xml --8-<---8-<---8-<---8-<---8-<---8-<---8-<---8-< --- myecho.bat --8-<

AW: using fileset to only list the filenames and not the path+filename

2005-10-25 Thread Jan.Materne
Sorry, test code. - is expanded to the file, would give. With complete path. - is the string after all s are applied. So ... should help. Jan >-Ursprüngliche Nachricht- >Von: martin sweitzer [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 25.

AW: Ant or Subant question

2005-10-25 Thread Jan.Materne
Mmh, just have a look at the last example in s manual [1]. A project has several modules. Each module has in own buildfile, which is basically a project standard file - so it´s only one statement. And there is a master buildfile which builds all modules. Just call a "compile" on the master and

AW: Ant or Subant question

2005-10-26 Thread Jan.Materne
>However I was asking myself another question. What happens >with the basedir project's attributes? >From the manual "If you want to run directory1/mybuild.xml, directory2/mybuild.xml, , use the antfile attribute. The subant task does not set the base directory for you in this case, b

AW: Ant or Subant question

2005-10-26 Thread Jan.Materne
Is the manual not clear enough? How to improve that? Jan >-Ursprüngliche Nachricht- >Von: Petar Tahchiev [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 26. Oktober 2005 09:29 >An: Ant Users List >Betreff: Re: Ant or Subant question > >On 26/10/05, [EMAIL PROTECTED] ><[EMAIL PROTECTED]>

AW: cross-platform scripting in ant

2005-10-27 Thread Jan.Materne
>I was wondering about the following: i used to write ant >scripts with some tasks written in javascript >using BSF(apache bsf) and rhino. >Now i would like those script tasks to be compatible with an >AIX 5.2 platform: should i change the scripting language?How >about The bsf library since IB

AW: How to call an ant script with parameters?

2005-10-27 Thread Jan.Materne
Use properties: ant -f MyAntScript.xml MyTarget -Dparam1=MyParameter1 -Dparam2=MyParameter2 Access in Ant: ${param1} ${param2} see also passing parameters to ant http://marc.theaimsgroup.com/?l=ant-user&m=110545745615637&w=2 I think I had done something ... yes in 2003. Mmh - maybe http:/

AW: How to call an ant script with parameters?

2005-10-27 Thread Jan.Materne
Hhm - maybe I should document and publish the whole snippet library ... Jan >-Ursprüngliche Nachricht- >Von: Remo Liechti [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 27. Oktober 2005 12:44 >An: Ant Users List >Betreff: RE: How to call an ant script with parameters? > >Wow, what a c

AW: problem in enabling wildcard

2005-10-28 Thread Jan.Materne
Hi Rajnish, never heard from "*" - nothing in the manual ... Which target should be executed on "*" ? Jan >-Ursprüngliche Nachricht- >Von: Rajnish Singh [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 28. Oktober 2005 11:34 >An: user@ant.apache.org >Betreff: problem in enabling wildcard

AW: Jar or copy files from multiple unknown directories

2005-10-28 Thread Jan.Materne
Hi Cornelius, use only ${basedir} as dir and includes "**/src/". Maybe you have to play with nested mappers ... damn - no mapper support in ... Ok, workaround - iterating with ac:foreach . Jan >-Ursprüngliche Nachricht- >Von: arcus(x) - Cornelius Buschka [mailto:[EMAIL PROTECTED] >

AW: AW: Jar or copy files from multiple unknown directories

2005-10-28 Thread Jan.Materne
Would be better to add support of ResourceCollection to (and therefore to ). Jan >-Ursprüngliche Nachricht- >Von: arcus(x) - Cornelius Buschka [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 28. Oktober 2005 12:17 >An: Ant Users List >Betreff: Re: AW: Jar or copy files from multiple unk

AW: setting env variable in ant script

2005-10-28 Thread Jan.Materne
Use the command attribute of . Jan >-Ursprüngliche Nachricht- >Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 28. Oktober 2005 12:14 >An: user@ant.apache.org >Betreff: setting env variable in ant script > > >Hi, > >normally i run my scripts via batfile and do a set P

AW: AW: AW: Jar or copy files from multiple unknown directories

2005-10-28 Thread Jan.Materne
Hello Cornelius, for short ResourceCollection is a collection of Resources. A Resource [1] "Describes a "File-like" resource (File, ZipEntry, etc.)." In the earlier past there were some work on that area [2] and we tend to move to that. E.g. [3,4] supports ResourceCollections - in HEAD of cour

AW: problem in enabling wildcard

2005-10-28 Thread Jan.Materne
Sorry that doesnt work from 1.2 to 1.7(15.06.2005) 1 2 3 4 Default-Target Jan >-Ursprüngliche Nachricht- >Von: Rajnish Singh [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 28. Oktober 2005 12:36 >An: Ant Users List >Betreff: RE: problem in e

AW: Logging - I need a concept

2005-10-28 Thread Jan.Materne
Hi Remo, have you tried the "-logfile" option? Jan >-Ursprüngliche Nachricht- >Von: Remo Liechti [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 28. Oktober 2005 12:44 >An: Ant Users List >Betreff: Logging - I need a concept > >Hi all >I have to implement a loging function to my ant scr

AW: Logging - I need a concept

2005-10-28 Thread Jan.Materne
Maybe combination between -logfile and -debug/-verbose ? Would be easier than writing a new logger ... Next step would trying the Log4J-Logger and play with the Log4J configuration. Jan >-Ursprüngliche Nachricht- >Von: Remo Liechti [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 28. Okt

AW: problem in enabling wildcard

2005-10-28 Thread Jan.Materne
>If you want to build everything, have a target called "all", >or even "*" >(yes, that is a legal target name), and invoke it. Writing that target is simple: Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

AW: Need to expand *.txt in java task

2005-10-30 Thread Jan.Materne
Maybe http://marc.theaimsgroup.com/?l=ant-user&m=110067648929614&w=2 would interest you, Bob. Jan >-Ursprüngliche Nachricht- >Von: Dale Anson [mailto:[EMAIL PROTECTED] >Gesendet: Samstag, 29. Oktober 2005 00:13 >An: Ant Users List >Betreff: Re: Need to expand *.txt in java task > >I'd

AW: ant is giving me a spurious "Unknown argument" error

2005-10-30 Thread Jan.Materne
Hi Deron, -cp will add entries to the classpath - as "java" does. It´s implemented in the Launcher [1] (why it´s not documented via "ant -h"?) in September last year [2], so it must be introduced with Ant 1.6.3 [3]. Maybe the wrapper script (which uses -cp) is from 1.6.3+ and the implementation

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

2005-10-30 Thread Jan.Materne
Sub-build writes into a property file () and the master reads that (). Jan >-Ursprüngliche Nachricht- >Von: Roland Asmann [mailto:[EMAIL PROTECTED] >Gesendet: Sonntag, 30. Oktober 2005 20:55 >An: user@ant.apache.org >Betreff: Re: How to get 'return-properties' from an ant-call >to ano

AW: -l logfile

2005-10-31 Thread Jan.Materne
>It is possible to define a logfile(path) using the -l option. >Is there a property that can be accessed out of the ant script >to read the path of the logfile? > >Remo I dont think so, but I havent looked at oata.launch.Launcher and oata.Main. The idea is to configure the registered BuildListene

AW: -l logfile

2005-10-31 Thread Jan.Materne
Short view into oata.Main [1]: Main.java:0270: private void processArgs(String[] args) { Main.java:0271: String searchForThis = null; Main.java:0272: PrintStream logTo = null; Main.java:0273: Main.java:0276: for (int i = 0; i < args.length; i++) { Main.java:0277:

AW: Substring

2005-11-02 Thread Jan.Materne
Hi Remo, * first I would think about if it´s really needs modification. Do the build work? That´s the main point here. * second I would think if you _really_ need the slashes in the property. You could also write a ${prop1}/${prop2} somewhere else. * then you could define a 3rd property using

AW: Example Ant 1.6 build files for project with multiple WAR and JAR modules?

2005-11-02 Thread Jan.Materne
Hi Lawrie, having the Jakarta Commons in mind I would think about - one project (svn+Ant) per jar/war build.xml: import common/common.xml - one project per ear build.xml: import common/common.xml svn:external-->jar/war - one project for common files I´m not the svn-guru, so I stress to "thi

AW: Example Ant 1.6 build files for project with multiple WAR and JAR modules?

2005-11-02 Thread Jan.Materne
At JGuru was a thread on the same topic - "Sample multi-project build files utilising Ant 1.6 features?" [1]. And I posted a link [2] to the user list, where are links and a description of the Jakarta Commons. Jan [1] http://www.jguru.com/forums/view.jsp?EID=1269943 [2] http://marc.theaimsgroup

AW: exec task problem

2005-11-03 Thread Jan.Materne
Hello Andrei, i did a little bit googling and these could be interesting for you: http://cargo.codehaus.org/ Cargo is a thin wrapper around existing J2EE containers. It provides different APIs to easily manipulate containers. http://www.jboss.org/?module=bb&op=viewtopic&t=66570&start=0 Ryan C

AW: ANT todir= exception

2005-11-03 Thread Jan.Materne
Hi Chida, check your exact spelling - especially whitespaces: > --^- >/home/app/build.xml:110: java.lang.NullPointerException What is the stacktrace of the NPE? cheers Jan

AW: Anyone have a Success task?

2005-11-14 Thread Jan.Materne
My 1st thought was: why that? But ok, if you want to have that, here more thoughts :-) is implemented in Exit.java [1]. Basically it throws an Exception. Therefore Ant itself lets the build fail a custom task couldnt force Ant to quit the build AND print "successful". Jan [1] http://svn.apac

AW: AW: Problems with optional tasks

2005-11-14 Thread Jan.Materne
${user.home}/.ant/lib as described in http://ant.apache.org/manual/running.html#libs Jan >-Ursprüngliche Nachricht- >Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Gesendet: Sonntag, 6. November 2005 15:57 >An: Ant Users List >Betreff: Re: AW: Problems with optional tasks > >How can

AW: How to parse a directory path?

2005-11-14 Thread Jan.Materne
If these directories contain a buildfile which is called by , I would try ${basedir} ... Jan >-Ursprüngliche Nachricht- >Von: Dan Finkelstein [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 8. November 2005 04:56 >An: Ant Users List >Betreff: Re: How to parse a directory path? > >Thanks!

AW: Logging from custom tasks

2005-11-14 Thread Jan.Materne
I put a note into the manual [1] about the log levels. Maybe that´s interesting for you. Jan [1] http://svn.apache.org/viewcvs.cgi/*checkout*/ant/core/trunk/docs/manual/CoreTasks/echo.html?content-type=text%2Fplain >-Ursprüngliche Nachricht- >Von: Jeffrey E Care [mailto:[EMAIL PROTEC

AW: ant build problem?

2005-11-16 Thread Jan.Materne
>> i am using the ant that comes with eclipse 3.1.1 sdk >You'd better try with a standalone ant version outside eclipse. Since Eclipse 3.1 there is a standard Ant distro inside in ECLIPSE_HOME/plugins/org.apache.ant_1.6.5 - only without the manual. See https://bugs.eclipse.org/bugs/show_bug.cg

AW: uncopy -- custom task supporting mapper

2005-11-16 Thread Jan.Materne
Ok, so just ing it wouldnt be enough. But where to get the "old" version? From , , ... ? Jan >-Ursprüngliche Nachricht- >Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 16. November 2005 21:02 >An: Ant Users List >Betreff: Re: uncopy -- custom task supporting mappe

AW: AntExplorer Problems

2005-11-21 Thread Jan.Materne
>-Ursprüngliche Nachricht- >Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] > >"Cannot execute due to : >Ant not found on classpath" > >i also tried CLASSPATH=C:\ant_1_6_5 and CLASSPATH=C:\ant_1_6_5\lib Ant uses a launcher class which evaluates the classpath - all JARs in ANT_HOME/lib -

AW: and '$' symbol on Solaris 8

2005-11-21 Thread Jan.Materne
Can you post the code snippet? It´s just an idea (without understanding your problem): do you have to mask the dollar sign? E.g. if you want to pass the STRING ${foo} you have to mask the dollar $${foo}. Jan >-Ursprüngliche Nachricht- >Von: Nadejda Rylova [mailto:[EMAIL PROTECTED] >Ges

AW: on

2005-11-21 Thread Jan.Materne
Mmh - working for Ant 1.7 you could use nested . There is a for them... Jan >-Ursprüngliche Nachricht- >Von: Dominique Devienne [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 21. November 2005 16:48 >An: Ant Users List >Betreff: Re: on > >On 11/21/05, Antoine Levy-Lambert <[EMAIL PROT

AW: trying to grep in file for a certain string

2005-11-21 Thread Jan.Materne
Jan >-Ursprüngliche Nachricht- >Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 21. November 20

AW: Fork problem in the task "Java" with long classpath, on Windows OS.

2005-11-22 Thread Jan.Materne
then indeed it's a classpath length issue, and you can >use tricks like create a Jar with an in-manifest Class-Path: >attribute interpreted by the VM directly to work around the issue. --DD Maybe a jar with only that manifest file? Jan --

AW: ant task fails

2005-11-23 Thread Jan.Materne
AntContrib Jan >-Ursprüngliche Nachricht- >Von: Andrei [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 23. November 2005 10:41 >An: Ant Users List >Betreff: ant task fails > >I have the following ant target: > > > > > > > > >if the test-xejb task fails the echo message a

AW: apply task trouble for command using < and >

2005-11-24 Thread Jan.Materne
< and > mean redirection of STDIN and STDOUT from/to file. So I would have a look at nested s. Jan >-Ursprüngliche Nachricht- >Von: Jakob Fix [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 24. November 2005 13:53 >An: Ant Users List >Betreff: apply task trouble for command using < an

AW: apply task trouble for command using < and >

2005-11-24 Thread Jan.Materne
I´ve played a little bit ... Jan >-Ursprüngliche Nachricht- >Von: Jakob Fix [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 24. November 2005 15:20 >An: Ant Users List >B

AW: config.sys not found

2005-11-25 Thread Jan.Materne
I am not sure if that is required any more. But I cant check that - Im working on XP. Try Ant without modifying the config.sys (which should be in the root directory of the of your windows-drive, AFAIK). Background: in earlier stages we used a for-loop in the launcher scripts for creating a C

AW: apply task trouble for command using < and >

2005-11-25 Thread Jan.Materne
I tuned the example...

AW: how to BUILD FAILED when tests failed

2005-11-25 Thread Jan.Materne
At least one test failed - see the report. You have collected all infos you need, you only have to use that :-) Jan >-Ursprüngliche Nachricht- >Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 25. November 2005 13:34 >An: user@ant.apache.org >Betref

AW: dir check

2005-11-25 Thread Jan.Materne
Usually they dont. If YOU want to check would be your friend. e.g. fails if the dest-dir does not exist. So usually you have a before that. Jan >-Ursprüngliche Nachricht- >Von: Andrei [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 25. November 2005 15:03 >An: Ant Users List >B

AW: apply task trouble for command using < and >

2005-11-25 Thread Jan.Materne
Usually you place a at the beginning, e.g. before a . If the dir does not exist, it will be created. If if exists already, nothing happens. Because this (javac fails if dir does not exist) is an old behaviour some build scripts may rely on that behaviour, so we cant change that. You dont n

AW: apply task trouble for command using < and >

2005-11-28 Thread Jan.Materne
>> I'll try to update the "real" apply task next week, but you can use >> the custom task below in the mean time (it just "plugs in" at the >> right time to create the directories, without duplicating >the >> code itself. Ant's maps to ExecuteOn). > >That's terrific, thanks a lot! However, u

AW: apply task trouble for command using < and >

2005-11-28 Thread Jan.Materne
Sorry, touched the wrong key ... More inside >>That's terrific, thanks a lot! However, unfortunately, I do not know >>how to integrate your extension of the Apply class into my >current Ant >>setup. I think these steps should works - compile the class (needs ant.jar on classpath) - the c

AW: apply task trouble for command using < and >

2005-11-28 Thread Jan.Materne
ggrrr next try (why does Alt-S sends (as Ctrl-Return does) and doesnt select the subject... "nice" outlook...) >>That's terrific, thanks a lot! However, unfortunately, I do not know >>how to integrate your extension of the Apply class into my >current Ant >>setup. I think these steps

AW: Writing files

2005-11-28 Thread Jan.Materne
Jan >-Ursprüngliche Nachricht- >Von: Andrei [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 28. November 2005 11:11 >An: Ant Users List >Betreff: Writing files > >Does any body know how to create a property file and write >some properties in it from ant? Do you know any ant task which >

AW: Starting processes in parallel

2005-11-28 Thread Jan.Materne
or define that start process in and refer to that in individual and the parallel targets. Jan >-Ursprüngliche Nachricht- >Von: D. Bollmann [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 28. November 2005 10:57 >An: user@ant.apache.org >Betreff: Starting processes in parallel > >Hi,

AW: apply task trouble for command using < and >

2005-11-28 Thread Jan.Materne
>> I think these steps should works >> - compile the class (needs ant.jar on classpath) >> - , e.g. > name="apply2"/> >> - use the "new" task > >Now I feel really stupid, but what the hell ... ok, I compiled >the class like this > javac -classpath "./lib/ant.jar" Apply.java > >which indeed create

AW: Obtaining error messages from xslt task

2005-11-28 Thread Jan.Materne
Can you point to the buildfile, xmlfile, entities and stylesheet in SVN? Would be easier to retest... Jan >-Ursprüngliche Nachricht- >Von: Simon Kitching [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 29. November 2005 00:11 >An: user@ant.apache.org >Betreff: Obtaining error messages fr

AW: Writing files

2005-11-29 Thread Jan.Materne
You could use the format="xml", but I dont know which schema comes out. Maybe you have to write a stylesheet for conversion between the output of and the log4j.xml syntax. Then use for transformation. Jan >-Ursprüngliche Nachricht- >Von: Rakesh Patel [mailto:[EMAIL PROTECTED] >Gesen

AW: SVN task

2005-11-30 Thread Jan.Materne
There are some external tasks (see external task page) and there is a svn antlib in the repository - not released yet. Jan >-Ursprüngliche Nachricht- >Von: Andrei [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 30. November 2005 13:56 >An: Ant Users List >Betreff: SVN task > >I know th

AW: Extract jar files in an ant task

2005-11-30 Thread Jan.Materne
All the mapping between tasknames and the implementing class is specified in the default.properties [1] file. Jan [1] http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/defaults.properties >-Ursprüngliche Nachricht- >Von: Jeffrey E Care [mailto:[EMA

AW: AW: Extract jar files in an ant task

2005-11-30 Thread Jan.Materne
Maybe Leafcutter is something for you Jan http://marc.theaimsgroup.com/?l=ant-user&m=112962452208546&w=2 https://leafcutter.dev.java.net/ >-Ursprüngliche Nachricht- >Von: Markus Innerebner [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 30. November 2005 14:38 >An: Ant Users List >Bet

AW: ant not recognizing command line argument

2005-11-30 Thread Jan.Materne
I tried you buildfile from [1] - commented only the jflex-taskdef out - and that worked for me. But your output [2] doesnt seem to fit to your buildfile. On your machine the execution order was "init,copygen,classes,shared,javadoc,all" but called was "ant clean" - never have seen that before. S

AW: idiom to pass ant command line args to java task?

2005-12-01 Thread Jan.Materne
$0 refers to the first argument. Where is the end? Is $9 the last accessible argument or $10...? Then using that reference must be followed by a split character. ant -- one two eleven $10HelloWorld a) two0HelloWorld b) elevenHelloWorld Printing out multiple arguments with $

AW: does "property" could have several values?

2005-12-04 Thread Jan.Materne
A fileset [1] has exactly one root directory. Because d:\ and e:\ doesnt have that (windows shows them only under a common place) you have to use two different filesets. A path [2] on the other hand can contain multiple filesets, so you´ll get Jan [1] http://ant.apache.org/CoreTyp

AW: CVS Task

2005-12-05 Thread Jan.Materne
cvs.exe must be on your PATH Can you execute cvs -version from the same command line as "ant" ? Jan >-Ursprüngliche Nachricht- >Von: Guruprasad R [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 5. Dezember 2005 13:29 >An: Ant Users List >Betreff: CVS Task > >Hi all, > >I have written

  1   2   3   4   5   6   7   8   9   10   >