Ant/Docbook HOWTO

2009-01-20 Thread Blaine Simpson
I've written a document covering the neglected (and challenging) topic of DocBook in Ant / pure Java environments. http://pub.admc.com/howtos/ant-docbook-howto/ - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For a

Re: jar task collapsing non-Java, non-class files

2009-01-20 Thread Mitch Gitman
Well, this is one of those times when I have to stand in awe at just how phenomenally stupid I am. Ant wasn't collapsing or flattening anything. The directories were collapsed/flattened to begin with in source. As often happens with matters of this sort, I'm happy to share a little bit of the blam

Re: Newbie: How to skip publish to local repository

2009-01-20 Thread David Goblirsch
Archie Cobbs wrote: This is really an ant question, not an ivy question (I say that for clarification, not to be annoying :-) The simplest way would be to set some property "jar.published" in your jar task (via ) and then make your publish task conditional on this property being set (e.g., via )

Re: Newbie: How to skip publish to local repository

2009-01-20 Thread David Goblirsch
Mitch Gitman wrote: David, forgive me beforehand for answering your question (A) with another question and then (B) by sidestepping it. Could you clarify what you mean by "local repository"? I think in the usual Ivy parlance, this means local to an individual developer's machine. Do you mean loc

Re: jar task collapsing non-Java, non-class files

2009-01-20 Thread Mitch Gitman
Here's a little experiment that reduces the problem to its simplest case. Suppose for argument's sake I'm not jarring any class files. Here's a passage that works: But suppose I change just one small thing. From this: includes="**/*.java" To *this*: includes="**/*.xml

jar task collapsing non-Java, non-class files

2009-01-20 Thread Mitch Gitman
I'm using a fileset as a nested element of the jar Ant task. When the fileset consists of .class files or .java files, the archiving takes place correctly: * com * mycompany * myproject * SomeClass.class But when the fileset consists of some other kind of file, like XML fil

Re: Newbie: How to skip publish to local repository

2009-01-20 Thread Archie Cobbs
This is really an ant question, not an ivy question (I say that for clarification, not to be annoying :-) The simplest way would be to set some property "jar.published" in your jar task (via ) and then make your publish task conditional on this property being set (e.g., via ). I might have the syn

Re: Newbie: How to skip publish to local repository

2009-01-20 Thread Mitch Gitman
David, forgive me beforehand for answering your question (A) with another question and then (B) by sidestepping it. Could you clarify what you mean by "local repository"? I think in the usual Ivy parlance, this means local to an individual developer's machine. Do you mean local to your machine or

Newbie: How to skip publish to local repository

2009-01-20 Thread David Goblirsch
If I have no changes to my source code or ivy.xml, my build will do nothing EXCEPT that the "publish" task still wants to push them to the local repository. In order to get the build to not fail, I have to set overwrite to "true". My guess is I am missing something here. My "publish" task depen

Re: Task replace - how to use a XML property file

2009-01-20 Thread Gilbert Rebhan
Lars Ohlén schrieb: > Hi, > I have done some string substitution on a set of files using the task > replace > > (with a replacefilterfile refereeing to property file) > > > > Everything works like expected but the users would prefer to be able to > > enter the properties in XML instead th

Copy files in a directory not directory itself where source directory name is not known

2009-01-20 Thread yousufhaider
I have directory structure like this: source/ /repository-TIMESTAMP /file1 /file2 /folder1 /file3 I want to copy files from here to be in this form: target /file1 /file2 /folder1 /file3 This is usu

Re: How do I reference external JARs when running a Java program fromAnt?

2009-01-20 Thread Anna Teittinen
Hello Jason, I have something similar to the following in my build.xml file: Then, inside the and section, I have: I hope this works for you... as I am still learning the ins and outs of ant build.xml files myself. Thanks, --Anna -Original message- From: astyrrian1

How do I reference external JARs when running a Java program from Ant?

2009-01-20 Thread astyrrian17
I have a java program that uses external jars (Apache POI files). I used eclipse to code this small program and it works just fine. This program referenced those external jars succesfully. Now I want to use ant to run this program and provide inputs. I intend to compile, create the jar from ant,

Re: problem: how to copy multiple directories in ant

2009-01-20 Thread Gilbert Rebhan
bmilbr...@outstart.com schrieb: > Worked great. Thanks gilbert. I had used ant-contrib's looping before, > but felt surely ant offered a 'native' way to solve this problem, just > that I hadn't mastered dirset/fileset/pathconvert, etc. I intuited wrong. > > a suggestion for the ant-team: > The doc

Task replace - how to use a XML property file

2009-01-20 Thread Lars Ohlén
Hi, I have done some string substitution on a set of files using the task replace (with a replacefilterfile refereeing to property file) Everything works like expected but the users would prefer to be able to enter the properties in XML instead the standard name=value construct. I ha

Re: problem: how to copy multiple directories in ant

2009-01-20 Thread Dominique Devienne
> |---bad > |--Bad.class (from patch02) FWIW, fileset/dirset have an undefined order so it's difficult to predict for sure that Bad.class will always come from patch02 rather than patch01. Might work on one OS but not another. The new resource collection may allow more contro

Re: sftp.keyFile must be absolute

2009-01-20 Thread Kirby Files
Brian Matzon wrote on 01/19/2009 05:15 AM: I recently updated from beta 2 to rc2 and I was unable to run ivy because sftp.keyFile is now required to be absolute. [...] fwiw, it would be nice if SFTPResolver waited to initialize (and fail) until its actually used? Yes, I was bummed that rc2 b

Re: problem: how to copy multiple directories in ant

2009-01-20 Thread bmilbr...@outstart.com
Worked great. Thanks gilbert. I had used ant-contrib's looping before, but felt surely ant offered a 'native' way to solve this problem, just that I hadn't mastered dirset/fileset/pathconvert, etc. I intuited wrong. a suggestion for the ant-team: The documentation is very helpful. To increase it's

Re: ANT FTP Error

2009-01-20 Thread Peter Reilly
See: http://ant.apache.org/manual/install.html#librarydependencies you need commons-net.jar and (it seems) jakarta-oro.jar. Place these files in $HOME/.ant/lib, or in $ANT_HOME/lib and the ftp task should work. Peter On Tue, Jan 20, 2009 at 8:07 AM, VELPULA, Ashok Kumar wrote: > Hi > > > > I

ANT FTP Error

2009-01-20 Thread VELPULA, Ashok Kumar
Hi I have been trying to connect FTP using the ANT 1.7.1 below is my sample script: Result: Could not create type ftp due to java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClientConfig But when I execu

RE: problem: how to copy multiple directories in ant

2009-01-20 Thread Rebhan, Gilbert
-Original Message- From: bmilbr...@outstart.com [mailto:bmilbr...@outstart.com] Sent: Monday, January 19, 2009 6:55 PM To: user@ant.apache.org Subject: problem: how to copy multiple directories in ant /* Hi, I have a well-defined problem I can easily solve via a shell script, but want

Getting log4j output from ANT tasks to the output

2009-01-20 Thread ez
i'm using ANT task which uses log4j. the problem is that logging output does not get into the output. instead i get this: log4j:WARN No appenders could be found for logger (com.i18n.Excel2Properties). log4j:WARN Please initialize the log4j system properly. what should i do? -- View this mes

RE: problem: how to copy multiple directories in ant

2009-01-20 Thread Rebhan, Gilbert
-Original Message- From: bmilbr...@outstart.com [mailto:bmilbr...@outstart.com] Sent: Monday, January 19, 2009 6:55 PM To: user@ant.apache.org Subject: problem: how to copy multiple directories in ant /* Hi, I have a well-defined problem I can easily solve via a shell script, but want t