ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Chu" <will...@gmail.com>
Subject Re: Javac.java
Date Wed, 12 Jul 2006 17:38:11 GMT
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 <antoine@gmx.de> 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 <willchu@gmail.com>
> 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: dev-unsubscribe@ant.apache.org
> > For additional commands, e-mail: dev-help@ant.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message