: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
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).
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_
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
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"
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
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
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
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é
___
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
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
11 matches
Mail list logo