[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [platform-ant-dev] custom ProjectHelper
|
About the ProjectHelper, I've annotated the bug you've opened. Your second
suggestion is interesting (let the user specify the Ant installation
directory). Could you open a feature request for that?
Thanks,
Rodrigo
"Wannheden, Knut"
<knut.wannheden@paranor To: "'platform-ant-dev@xxxxxxxxxxx'" <platform-ant-dev@xxxxxxxxxxx>
.ch> cc:
Sent by: Subject: RE: [platform-ant-dev] custom ProjectHelper
platform-ant-dev-admin@
eclipse.org
07/23/2002 04:32 AM
Please respond to
platform-ant-dev
Browsing the Ant user manual I noticed that this feature isn't documented
anywhere but in the source code ;-) The same goes for the ant.home
property which is set by Ant's command line frontend and is used by the
core <exec> task.
This makes it a little bit unclear whether this is really a bug in the Ant
plugin or not. But if any exposed behaviour differing from Ant's command
line frontend is regarded as a bug, then this clearly is one.
So for documentation I have to point you to the source files, where the
classes org.apache.tools.ant.ProjectHelper and
org.apache.tools.ant.helper.ProjectHelperImpl should capture everything
about the feature.
Since I mentioned the ant.home property which isn't set I thought I'd ask
about that as well. Do you think that future versions of the plugin will
encapsulate a complete Ant distribution (or as an alternative let the user
specify his Ant installation directory) which would let you properly set
the ant.home property?
--
knut
> -----Original Message-----
> From: Rodrigo Peretti [mailto:Rodrigo_Peretti@xxxxxxx]
> Sent: Montag, 22. Juli 2002 15:43
> To: platform-ant-dev@xxxxxxxxxxx
> Subject: Re: [platform-ant-dev] custom ProjectHelper
>
>
>
> It is currently not possible. Could you open a bug report
> (http://bugs.eclipse.org/bugs/index.html) against Platform
> Ant? Also, could
> you point us to the doc explaining that?
>
> Thanks,
> Rodrigo
>
>
>
>
>
>
>
> "Wannheden, Knut"
>
>
> <knut.wannheden@paranor To:
> "'platform-ant-dev@xxxxxxxxxxx'"
> <platform-ant-dev@xxxxxxxxxxx>
> .ch> cc:
>
>
> Sent by: Subject:
> [platform-ant-dev] custom ProjectHelper
>
> platform-ant-dev-admin@
>
>
> eclipse.org
>
>
>
>
>
>
>
>
> 07/19/2002 10:59 AM
>
>
> Please respond to
>
>
> platform-ant-dev
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
>
> A while back Ant introduced the concept of a ProjectHelper, which is
> responsible for setting up a project from an input (currently
> limited to
> files). This is useful because it allows users to write their own
> ProjectHelper, which works differently than the default
> ProjectHelper in
> Ant.
>
>
> There are two ways to plug in a custom ProjectHelper:
>
>
> - via Java services (i.e. include a
> META-INF/services/org.apache.tools.ant.ProjectHelper file in a Jar
> specifying what class is the custom ProjectHelper)
>
>
> - by setting the system property
> org.apache.tools.ant.ProjectHelper with
> the value of the custom ProjectHelper's class name
>
>
> When running Ant with the command line tool you can set the
> system property
> by setting the environment variable ANT_OPTS, whose value is passed as
> arguments to the VM.
>
>
> So far, so good. My problem is now that I can't find a way to load my
> custom ProjectHelper with the Eclipse Ant plugin. And unless Ant is
> launched in a separate VM I don't see a way to do so either.
> An option
> would maybe be using System.setProperty(), but then there
> might be problems
> with the scurity manager.
>
>
> Will custom ProjectHelpers be supported by the Eclipse plugin?
>
>
> Cheers,
>
>
> --
> knut
>
>
>
>
>
>
>
> _______________________________________________
> platform-ant-dev mailing list
> platform-ant-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-ant-dev
>