Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 63250 invoked by uid 500); 22 Aug 2003 04:48:53 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 63230 invoked from network); 22 Aug 2003 04:48:53 -0000 Received: from over.ny.us.ibm.com (32.97.182.111) by daedalus.apache.org with SMTP; 22 Aug 2003 04:48:53 -0000 Received: from e32.co.us.ibm.com (e32.esmtp.ibm.com [9.14.4.130]) by pokfb.esmtp.ibm.com (8.12.9/8.12.2) with ESMTP id h7LHrtYE244932 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Thu, 21 Aug 2003 13:53:55 -0400 Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32]) by e32.co.us.ibm.com (8.12.9/8.12.2) with ESMTP id h7LHqbUj354926; Thu, 21 Aug 2003 13:52:37 -0400 Received: from d03nm119.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82]) by westrelay04.boulder.ibm.com (8.12.9/NCO/VER6.5) with ESMTP id h7LHqYc5287360; Thu, 21 Aug 2003 11:52:35 -0600 To: "Ant Users List" Cc: platform-ant-dev@eclipse.org Subject: RE: Can I use Ant (that is not Eclipse's Ant plugin) to compile an Eclipse's project by invoke Eclipse's compiler? X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 From: Darin Swanson Message-ID: Date: Thu, 21 Aug 2003 11:52:32 -0600 X-MIMETrack: Serialize by Router on D03NM119/03/M/IBM(Release 6.0.2CF1|June 9, 2003) at 08/21/2003 11:52:35 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_mixed 0062590688256D89_=" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --=_mixed 0062590688256D89_= Content-Type: multipart/alternative; boundary="=_alternative 0062590688256D89_=" --=_alternative 0062590688256D89_= Content-Type: text/plain; charset="us-ascii" The Eclipse compiler cannot be used outside of Eclipse currently. But Eclipse does have a notion of running "headless" using application entry points. The Eclipse Ant integration provides such an entry point. I have attached the bat file that I use for dev and testing. Then as Gilbert indicated, set build.compiler if eclipse.running HTH Darins "Rebhan, Gilbert" 08/21/03 04:20 AM Please respond to "Ant Users List" To: "ant_user (E-Mail)" cc: Subject: RE: Can I use Ant (that is not Eclipse's Ant plugin) to compile an Eclipse's project by invoke Eclipse's compiler? /* Dear all, Now am trying to use Ant outside Eclipse but I want to use Ant to compile an Eclipse's project by using Eclipse's compiler. How can I do? Best regards, Chien */ Here is a snippet of my buildfile running in or outside Eclipse : For your intention : try putting the jar's in Eclipsedirectory/plugin/org.eclipse.jdt.core.2.1.0 to your classpath and adjust the mechanism in the example above. I believe the eclipsecompiler won't work without Eclipse running though. Regards, Gilbert --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --=_alternative 0062590688256D89_= Content-Type: text/html; charset="us-ascii"
The Eclipse compiler cannot be used outside of Eclipse currently.

But Eclipse does have a notion of running "headless" using application entry points.

The Eclipse Ant integration provides such an entry point.
I have attached the bat file that I use for dev and testing.
Then as Gilbert indicated, set build.compiler if eclipse.running

HTH
Darins




"Rebhan, Gilbert" <Gilbert.Rebhan@huk-coburg.de>

08/21/03 04:20 AM
Please respond to "Ant Users List"

       
        To:        "ant_user (E-Mail)" <user@ant.apache.org>
        cc:        
        Subject:        RE: Can I use Ant (that is not Eclipse's Ant plugin) to compile an Eclipse's project by invoke Eclipse's compiler?




/*
Dear all,
Now am trying to use Ant outside Eclipse but I want to use Ant to
compile an Eclipse's project by using Eclipse's compiler.
How can I do?
Best regards,
Chien
*/

Here is a snippet of my buildfile running in or outside Eclipse :

<!---Checkin whether running in Eclipse, put this target atop your compile target-->

<target name="configure.eclipse" if="eclipse.running">
     <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>      
</target>

<!--compile target must be dependend from above target-->

<target name="compile" depends="init,configure.eclipse">
                <javac srcdir="${src}" destdir="${build.dest}">
                                 <classpath refid="compile.classpath"/>
                </javac>
</target>


For your intention :

try putting the jar's in Eclipsedirectory/plugin/org.eclipse.jdt.core.2.1.0
to your classpath and adjust the mechanism in the example above.

I believe the eclipsecompiler won't work without Eclipse running though.

Regards,
       Gilbert


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



--=_alternative 0062590688256D89_=-- --=_mixed 0062590688256D89_= Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --=_mixed 0062590688256D89_=--