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 String
getArtifactId()
Build
getBuild()
List<GAV>
getDependencies()
DependencyManagement
getDependencyManagement()
String
getGroupId()
Returns the (effective) groupId of the project.List<String>
getModules()
String
getPackaging()
GAV
getParent()
String
getParentVersion()
List<Profile>
getProfiles()
List<Property>
getProperties()
String
getVersion()
Returns the (effective) version of the project.boolean
isMutable()
static PomFile
read(File file, boolean isMutable)
static PomFile
read(InputStream input, boolean isMutable)
void
setParentVersion(String newVersion)
Sets the version in the parent POM declaration.void
setVersion(String version)
Sets the version of the project.static void
write(PomFile pom, File file)
static void
write(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()
-
-