Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Ant buid script export
Ant buid script export [message #600418] Wed, 05 August 2009 18:48
Ivica Loncar is currently offline Ivica LoncarFriend
Messages: 41
Registered: July 2009
Member
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.
Previous Topic:development branch of AJDT
Next Topic:development branch of AJDT
Goto Forum:
  


Current Time: Fri Apr 26 21:02:33 GMT 2024

Powered by FUDForum. Page generated in 0.02831 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top