[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.ajdt] Re: Ant buid script export
|
- From: Andrew Eisenberg <andrew.eisenberg@xxxxxxxxxxxxxxxx>
- Date: Wed, 05 Aug 2009 20:56:02 -0700
- Newsgroups: eclipse.technology.ajdt
- Organization: EclipseCorner
- Thread-index: AcoWSdCALoRyLSFshkedyXlWqpxxtw==
- Thread-topic: Ant buid script export
- User-agent: Microsoft-Entourage/12.20.0.090605
Thanks. I will get your patch into the next dev build of AJDT for 3.5.
Would you please raise a bug on bugzilla and attach the patch?
http://bugs.eclipse.org
--a
On 05/08/09 11:48 AM, in article
b2d6a249830cadb456399472788044bb$1@xxxxxxxxxxxxxxx, "Ivica Loncar"
<iloncar.ml@xxxxxxxxx> wrote:
>
> I had problems creating ant build script for an aspectj plugin and found
> out that there is a difference in BuildPluginAction between PDE version of
> a class and AJDT version of the class.
>
> The PDE version of makeScripts method contains:
>
> ..
>
>
> generator.setBuildingOSGi(true);
> // allow binary cycles
> Properties properties = new Properties();
>
> properties.put(IBuildPropertiesConstants.PROPERTY_ALLOW_BINARY_CYCLES,"true");
> //$NON-NLS-1$
> generator.setImmutableAntProperties(properties);
> IPluginModelBase model = PluginRegistry.findModel(project);
> if (model != null && model.getPluginBase().getId() != null) {
> generator.setBundles(new BundleDescription[]
> {model.getBundleDescription()});
> generator.generate();
> } else {
> MessageDialog.openError(null,
> PDEUIMessages.BuildPluginAction_ErrorDialog_Title,
> PDEUIMessages.BuildPluginAction_ErrorDialog_Message);
> }
>
> while AJDT version of makescripts method has only:
>
> generator.setBuildingOSGi(true);
> IPluginModelBase model =
> PDECore.getDefault().getModelManager().findModel(project);
> generator.setElements(new String[] { "plugin@"
> +model.getPluginBase().getId() }); //$NON-NLS-1$
> generator.generate();
>
>
> I think those two should be the same.
>
>
>