Package org.eclipse.tycho.versions.pom
Class PomFile
- java.lang.Object
-
- org.eclipse.tycho.versions.pom.PomFile
-
public class PomFile extends Object
-
-
Constructor Summary
Constructors Constructor Description PomFile(de.pdark.decentxml.Document pom, boolean isMutable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetArtifactId()BuildgetBuild()List<GAV>getDependencies()DependencyManagementgetDependencyManagement()StringgetGroupId()Returns the (effective) groupId of the project.List<String>getModules()StringgetPackaging()GAVgetParent()StringgetParentVersion()List<Profile>getProfiles()List<Property>getProperties()StringgetVersion()Returns the (effective) version of the project.booleanisMutable()static PomFileread(File file, boolean isMutable)static PomFileread(InputStream input, boolean isMutable)voidsetParentVersion(String newVersion)Sets the version in the parent POM declaration.voidsetVersion(String version)Sets the version of the project.static voidwrite(PomFile pom, File file)static voidwrite(PomFile pom, OutputStream out)
-
-
-
Field Detail
-
POM_XML
public static final String POM_XML
- See Also:
- Constant Field Values
-
-
Method Detail
-
read
public static PomFile read(File file, boolean isMutable) throws IOException
- Throws:
IOException
-
read
public static PomFile read(InputStream input, boolean isMutable) throws IOException
- Throws:
IOException
-
write
public static void write(PomFile pom, OutputStream out) throws IOException
- Throws:
IOException
-
write
public static void write(PomFile pom, File file) throws IOException
- Throws:
IOException
-
setParentVersion
public void setParentVersion(String newVersion)
Sets the version in the parent POM declaration. This never affects the (effective) version of the project itself.- See Also:
setVersion(String)
-
setVersion
public void setVersion(String version)
Sets the version of the project.
-
getVersion
public String getVersion()
Returns the (effective) version of the project.
-
getPackaging
public String getPackaging()
-
getParentVersion
public String getParentVersion()
-
getGroupId
public String getGroupId()
Returns the (effective) groupId of the project.
-
getArtifactId
public String getArtifactId()
-
getParent
public GAV getParent()
-
getDependencyManagement
public DependencyManagement getDependencyManagement()
-
getBuild
public Build getBuild()
-
isMutable
public boolean isMutable()
-
-