com.springsource.bundlor.ant
Class Bundlor
java.lang.Object
com.springsource.bundlor.ant.Bundlor
public class Bundlor
- extends java.lang.Object
An ANT task for dealing with the Bundlor tool.
- Author:
- Ben Hale, Christian Dupuis
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUNDLE_SYMBOLIC_NAME
private static final java.lang.String BUNDLE_SYMBOLIC_NAME
- See Also:
- Constant Field Values
BUNDLE_VERSION
private static final java.lang.String BUNDLE_VERSION
- See Also:
- Constant Field Values
bundlePath
private java.lang.String bundlePath
bundleSymbolicName
private java.lang.String bundleSymbolicName
bundleVersion
private java.lang.String bundleVersion
failOnWarnings
private boolean failOnWarnings
manifestTemplatePath
private java.lang.String manifestTemplatePath
outputPath
private java.lang.String outputPath
osgiProfile
private java.lang.String osgiProfile
project
private org.apache.tools.ant.Project project
mergeExistingHeaders
private boolean mergeExistingHeaders
propertySets
private java.util.List<org.apache.tools.ant.types.PropertySet> propertySets
Bundlor
public Bundlor()
setBundlePath
public void setBundlePath(java.lang.String bundlePath)
setBundleSymbolicName
public void setBundleSymbolicName(java.lang.String bundleSymbolicName)
setBundleVersion
public void setBundleVersion(java.lang.String bundleVersion)
setFailOnWarnings
public void setFailOnWarnings(boolean failOnWarnings)
setManifestTemplatePath
public void setManifestTemplatePath(java.lang.String manifestTemplatePath)
setOutputPath
public void setOutputPath(java.lang.String outputPath)
setProject
public void setProject(org.apache.tools.ant.Project project)
setOsgiProfilePath
public void setOsgiProfilePath(java.lang.String osgiProfilePath)
setMergeExistingHeaders
public void setMergeExistingHeaders(boolean mergeExistingHeaders)
addPropertyset
public void addPropertyset(org.apache.tools.ant.types.PropertySet ps)
- Add a set of properties to pass to the new project.
- Parameters:
ps
- PropertySet
to add.
init
public void init()
- Verify that required parameters have been set
execute
public void execute()
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.InterruptedException
- Creates a properly configured bundle
- Throws:
java.io.IOException
java.io.FileNotFoundException
java.lang.InterruptedException
printAttemptedBundlorManifest
private void printAttemptedBundlorManifest()
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
getManifestTemplate
private com.springsource.util.parser.manifest.ManifestContents getManifestTemplate()
addProvidedAttributes
private void addProvidedAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
createBundleTransformer
private BundleTransformer createBundleTransformer()
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException