RES: java.lang.NoClassDefFoundError in custom task

2008-11-03 Thread Andre Dantas Rocha
:30 Para: Ant Users List Assunto: Re: java.lang.NoClassDefFoundError in custom task Andre Dantas Rocha wrote: > Hi all, > > > > I'm trying to create a custom task that make some transformations using > Javassist (actually, this is my first Ant task). The task is very sim

java.lang.NoClassDefFoundError in custom task

2008-11-02 Thread Andre Dantas Rocha
Hi all, I'm trying to create a custom task that make some transformations using Javassist (actually, this is my first Ant task). The task is very simple, but can't figure out why it always produces a java.lang.NoClassDefFoundError (since the corresponding jar is in the path as message shows).

Re: Overriding filesets

2007-01-29 Thread Andre Dantas Rocha
Thanks Matt! > > --- Andre Dantas Rocha <[EMAIL PROTECTED]> > wrote: > > > Hello, > > > > Suppose I have this fileset: > > > > > > > > > > > > And I'd like to override it, including one more file > > (misc_

Overriding filesets

2007-01-29 Thread Andre Dantas Rocha
Hello, Suppose I have this fileset: And I'd like to override it, including one more file (misc_${env}.jar): Is that a way to use the old definition and include only the new jar? somethig like it: Thanks, Andre

Re: Getting typed target name

2007-01-17 Thread Andre Dantas Rocha
Thanks Peter. > No, > It is not provided to the build script. > > Peter > > > On 1/17/07, Andre Dantas Rocha <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Suppose I type this command in command line: "ant TARGET_NAME > > -Dambiente=dev"

Getting typed target name

2007-01-17 Thread Andre Dantas Rocha
Hi, Suppose I type this command in command line: "ant TARGET_NAME -Dambiente=dev" Is that possible to get the target name (TARGET_NAME in this case) inside my build? Thanks, Andre

Re: Capture Javac output

2005-03-02 Thread Andre Dantas Rocha
I'm trying to use DefaultLogger and my implementation is shown below. The log file is created but still empty after javac task run. Any ideas? Thanks Project project = new Project(); DefaultLogger logger; try { logger = new DefaultLogger(); FileOutputStream fo = new Fi

RE: Capture Javac output

2005-03-02 Thread Andre Dantas Rocha
Then it becomes as easy as > running > > a command and capturing the output. > > > > -Rob A > > > > > -Original Message- > > > From: Andre Dantas Rocha [mailto:[EMAIL PROTECTED] > > > I'm compiling some java files using an

Capture Javac output

2005-03-02 Thread Andre Dantas Rocha
Hi, I'm compiling some java files using an Ant project: Project project = createProject(); Javac javac = (Javac) project.createTask("javac"); javac.init(); ... javac.perform(); And would like to capture the output messages in a log file. How can I do that? Thanks, André ___

classpath problem (source code)

2005-02-23 Thread Andre Dantas Rocha
Oops...  I forgot the code package ant; import java.io.File; import org.apache.tools.ant.Project; import org.apache.tools.ant.taskdefs.Javac; import org.apache.tools.ant.types.Path; public class AntRunner { // separador de arquivos (\) public static final String FILE_SEP = (String) System

classpath problem

2005-02-23 Thread Andre Dantas Rocha
Hi, I'm trying to use Ant to compile some classes. I'm doing it via java code, creating a Project and executing it. I'm setting the Javac task classpath via Path element, but seems that Ant does not uses it. When I print the classpath it looks ok, but it doesn't work... My code is attached, an