Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsAnt buid script export
https://www.eclipse.org/forums/index.php/mv/msg/150075/471681/#msg_471681
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();
I think those two should be the same.]]>Ivica Loncar2009-08-05T18:48:43-00:00Re: Ant buid script export
https://www.eclipse.org/forums/index.php/mv/msg/150075/472652/#msg_472652
--------------070105060405000504040006
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
--------------070105060405000504040006--]]>Ivica Loncar2009-08-05T19:33:24-00:00Re: Ant buid script export
https://www.eclipse.org/forums/index.php/mv/msg/150075/477196/#msg_477196
Would you please raise a bug on bugzilla and attach the patch?
>
> 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_BINA RY_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.
>
>
>]]>Andrew Eisenberg2009-08-06T03:56:02-00:00Re: Ant buid script export
https://www.eclipse.org/forums/index.php/mv/msg/150075/600457/#msg_600457
Would you please raise a bug on bugzilla and attach the patch?
>
> 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_BINA RY_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.
>
>
>]]>Andrew Eisenberg2009-08-06T03:56:02-00:00Re: Ant buid script export
https://www.eclipse.org/forums/index.php/mv/msg/150075/600466/#msg_600466
> 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?
Done.]]>Ivica Loncar2009-08-06T08:29:57-00:00Re: Ant buid script export
https://www.eclipse.org/forums/index.php/mv/msg/150075/478121/#msg_478121
> 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?