public class BuildFile
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BuildFile.LibraryTarget
For all practical purposes, we say a runtime target has a path
and we know where it is absolutely or relative to the project
|
static class |
BuildFile.RuntimeTarget
For all practical purposes, we say a runtime target does not have a path
since it is located depending on the current project runtime.
|
static class |
BuildFile.Target
A target is a jar that we want to modify
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
XML_BUILD_FILENAME |
| Modifier and Type | Method and Description |
|---|---|
void |
addLibraryTarget(java.lang.String targetJarName,
java.lang.String targetJarPath)
Adds a target jar to the build file
|
void |
addRuntimeTarget(java.lang.String targetJarName)
Adds a target jar to the build file
|
void |
addTarget(BuildFile.Target targetToAdd)
Adds a target jar to the build file
|
static BuildFile |
createBuildFile(org.eclipse.jdt.core.IJavaProject jProject)
Creates a new build file
|
boolean |
equals(java.lang.Object obj)
A build file is equivalent to an object if it is representing the same file
|
static BuildFile |
getOrCreateBuildFile(org.eclipse.jdt.core.IJavaProject jProject)
Returns the existing build file or creates one if one does not exist
|
java.util.Set<BuildFile.Target> |
getTargets()
Returns a set of all the target jars in the xml file
|
int |
hashCode()
A build file is equivalent to an object if it is representing the same file
|
void |
removeTarget(java.lang.String targetJarName)
Removes a target jar from the build file
|
public static final java.lang.String XML_BUILD_FILENAME
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.Set<BuildFile.Target> getTargets() throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
buildFile - org.xml.sax.SAXExceptionjava.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionpublic void addRuntimeTarget(java.lang.String targetJarName)
throws javax.xml.transform.TransformerException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
buildFile - targetJar - javax.xml.transform.TransformerExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic void addLibraryTarget(java.lang.String targetJarName,
java.lang.String targetJarPath)
throws javax.xml.transform.TransformerException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
buildFile - targetJar - javax.xml.transform.TransformerExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic void addTarget(BuildFile.Target targetToAdd) throws javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
buildFile - targetJar - javax.xml.transform.TransformerExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic void removeTarget(java.lang.String targetJarName)
throws javax.xml.transform.TransformerException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
project - targetJar - javax.xml.transform.TransformerExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic static BuildFile getOrCreateBuildFile(org.eclipse.jdt.core.IJavaProject jProject)
project - org.eclipse.jdt.core.JavaModelExceptionpublic static BuildFile createBuildFile(org.eclipse.jdt.core.IJavaProject jProject)
project - org.eclipse.jdt.core.JavaModelException