Thank you Antoine,

I still have a question.

I can't find where the javac object is currently created. Which file
or Java object does the following ? :

Javac javac = new Javac()

I know the constructor is being invoked because I put a println that I
do see in the console:

class Javac extends MatchingTask {

public Javac() {
     System.out.println ("Javac Constructor being called");
     ....
}

On 7/12/06, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote:
Hi,

this would be more a question for the user list.
If I understand well, you are an API user.
To create a task, you can use

Javac javac = project.createTask("javac");

or if this is inside a custom task based on Ant 1.7 code

Javac javac = new Javac();
javac.bindToOwner(this);

for Ant 1.6
Javac javac = new Javac();
javac.setProject(this.getProject());
javac.        setOwningTarget(this.getOwningTarget());
javac.        setTaskName(this.getTaskName());
javac.        setDescription(this.getDescription());
javac.        setLocation(this.getLocation());
javac.        setTaskType(this.getTaskType());


Regards,

Antoine
-------- Original-Nachricht --------
Datum: Wed, 12 Jul 2006 09:42:59 -0700
Von: William Chu <[EMAIL PROTECTED]>
An: dev@ant.apache.org
Betreff: Javac.java

> Hello,
>
> How do I set the bootclasspath attribute for Javac? I need the Javac
> object first and then I can set the attribute via the
> setBootClasspath() method, but who creates the Javac object? I can't
> seem to find how the object is created.
>
> Thanks,
> WIll
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to