Lines 357-364
Link Here
|
357 |
|
357 |
|
358 |
private String[] getBuildExecutionTargets() { |
358 |
private String[] getBuildExecutionTargets() { |
359 |
if (fInfo.exportSource) |
359 |
if (fInfo.exportSource) |
360 |
return new String[] {"build.jars", "build.sources"}; //$NON-NLS-1$ //$NON-NLS-2$ |
360 |
return new String[] {"build.jars", "build.sources"}; //$NON-NLS-1$ //$NON-NLS-2$ |
361 |
return new String[] {"build.jars"}; //$NON-NLS-1$ |
361 |
return new String[] {"build.jars"}; //$NON-NLS-1$ |
362 |
} |
362 |
} |
363 |
|
363 |
|
364 |
/** |
364 |
/** |
Lines 363-369
Link Here
|
363 |
|
363 |
|
364 |
/** |
364 |
/** |
365 |
* Execute the script at the given location. |
365 |
* Execute the script at the given location. |
366 |
* |
366 |
* |
367 |
* @param location the script to run |
367 |
* @param location the script to run |
368 |
* @param targets the targets in the script to run, use <code>null</code> to run all |
368 |
* @param targets the targets in the script to run, use <code>null</code> to run all |
369 |
* @param properties map of user properties |
369 |
* @param properties map of user properties |
Lines 447-453
Link Here
|
447 |
fAntBuildProperties.put(id, BuildUtilities.getBootClasspath(id)); |
447 |
fAntBuildProperties.put(id, BuildUtilities.getBootClasspath(id)); |
448 |
} |
448 |
} |
449 |
fAntBuildProperties.put(IXMLConstants.PROPERTY_JAVAC_FAIL_ON_ERROR, "false"); //$NON-NLS-1$ |
449 |
fAntBuildProperties.put(IXMLConstants.PROPERTY_JAVAC_FAIL_ON_ERROR, "false"); //$NON-NLS-1$ |
450 |
fAntBuildProperties.put(IXMLConstants.PROPERTY_JAVAC_DEBUG_INFO, "on"); //$NON-NLS-1$ |
450 |
fAntBuildProperties.put(IXMLConstants.PROPERTY_JAVAC_DEBUG_INFO, "on"); //$NON-NLS-1$ |
451 |
fAntBuildProperties.put(IXMLConstants.PROPERTY_JAVAC_VERBOSE, "false"); //$NON-NLS-1$ |
451 |
fAntBuildProperties.put(IXMLConstants.PROPERTY_JAVAC_VERBOSE, "false"); //$NON-NLS-1$ |
452 |
|
452 |
|
453 |
Preferences pref = JavaCore.getPlugin().getPluginPreferences(); |
453 |
Preferences pref = JavaCore.getPlugin().getPluginPreferences(); |
Lines 488-494
Link Here
|
488 |
/** |
488 |
/** |
489 |
* Adds the necessary properties to invoke the p2 metadata generator. This method will |
489 |
* Adds the necessary properties to invoke the p2 metadata generator. This method will |
490 |
* be called when creating the ant build properties map. |
490 |
* be called when creating the ant build properties map. |
491 |
* |
491 |
* |
492 |
* @param map the map to add generator properties to |
492 |
* @param map the map to add generator properties to |
493 |
*/ |
493 |
*/ |
494 |
protected void setP2MetaDataProperties(Map map) { |
494 |
protected void setP2MetaDataProperties(Map map) { |
Lines 574-579
Link Here
|
574 |
generator.setStateExtraData(TargetPlatformHelper.getBundleClasspaths(TargetPlatformHelper.getPDEState()), TargetPlatformHelper.getPatchMap(TargetPlatformHelper.getPDEState())); |
574 |
generator.setStateExtraData(TargetPlatformHelper.getBundleClasspaths(TargetPlatformHelper.getPDEState()), TargetPlatformHelper.getPatchMap(TargetPlatformHelper.getPDEState())); |
575 |
AbstractScriptGenerator.setForceUpdateJar(false); |
575 |
AbstractScriptGenerator.setForceUpdateJar(false); |
576 |
AbstractScriptGenerator.setEmbeddedSource(fInfo.exportSource); |
576 |
AbstractScriptGenerator.setEmbeddedSource(fInfo.exportSource); |
|
|
577 |
|
578 |
// iloncar: allowbinarycycles |
579 |
Properties properties = new Properties(); |
580 |
properties.put(IBuildPropertiesConstants.PROPERTY_ALLOW_BINARY_CYCLES, Boolean.toString(fInfo.allowBinaryCycles)); |
581 |
generator.setImmutableAntProperties(properties); |
577 |
} |
582 |
} |
578 |
|
583 |
|
579 |
protected State getState(String os, String ws, String arch) { |
584 |
protected State getState(String os, String ws, String arch) { |
Lines 590-596
Link Here
|
590 |
Dictionary properties = dictionaries[i]; |
595 |
Dictionary properties = dictionaries[i]; |
591 |
properties.put("osgi.os", os); //$NON-NLS-1$ |
596 |
properties.put("osgi.os", os); //$NON-NLS-1$ |
592 |
properties.put("osgi.ws", ws); //$NON-NLS-1$ |
597 |
properties.put("osgi.ws", ws); //$NON-NLS-1$ |
593 |
properties.put("osgi.arch", arch); //$NON-NLS-1$ |
598 |
properties.put("osgi.arch", arch); //$NON-NLS-1$ |
594 |
} |
599 |
} |
595 |
fStateCopy.resolve(false); |
600 |
fStateCopy.resolve(false); |
596 |
return fStateCopy; |
601 |
return fStateCopy; |
Lines 755-761
Link Here
|
755 |
if (shouldAddPlugin(bundle, environment)) { |
760 |
if (shouldAddPlugin(bundle, environment)) { |
756 |
Element plugin = doc.createElement("plugin"); //$NON-NLS-1$ |
761 |
Element plugin = doc.createElement("plugin"); //$NON-NLS-1$ |
757 |
plugin.setAttribute("id", bundle.getSymbolicName()); //$NON-NLS-1$ |
762 |
plugin.setAttribute("id", bundle.getSymbolicName()); //$NON-NLS-1$ |
758 |
plugin.setAttribute("version", bundle.getVersion().toString()); //$NON-NLS-1$ |
763 |
plugin.setAttribute("version", bundle.getVersion().toString()); //$NON-NLS-1$ |
759 |
setAdditionalAttributes(plugin, bundle); |
764 |
setAdditionalAttributes(plugin, bundle); |
760 |
root.appendChild(plugin); |
765 |
root.appendChild(plugin); |
761 |
} |
766 |
} |