de.matthias_burbach.deputy.core
Class ProjectGenerator
java.lang.Object
de.matthias_burbach.deputy.core.ProjectGenerator
- public class ProjectGenerator
- extends java.lang.Object
Generates a new XML document for a Maven project from its current XML file
and the changes made in the application.
- Author:
- Matthias Burbach
Method Summary |
void |
createAndSaveUpdatedDocument(Project project,
java.lang.String oldProjectFileName,
java.lang.String newProjectFileName)
Generates a new XML document for a Maven project from its current XML
file and the changes made in the application.
|
org.jdom.Document |
createUpdatedDocument(Project project,
java.lang.String projectFileName)
Generates a new XML document for a Maven project from its current XML
file and the changes made in the application. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectGenerator
public ProjectGenerator(java.lang.String deputyVersion)
- Parameters:
deputyVersion
- The version of the Deputy application.
To be printed in the generator comment.
createUpdatedDocument
public org.jdom.Document createUpdatedDocument(Project project,
java.lang.String projectFileName)
throws java.lang.Exception
- Generates a new XML document for a Maven project from its current XML
file and the changes made in the application.
- Parameters:
project
- The project to generate the document for.projectFileName
- The full path of the current project file.
- Returns:
- The generated document.
- Throws:
java.lang.Exception
- if anything goes unexpectedly wrong
createAndSaveUpdatedDocument
public void createAndSaveUpdatedDocument(Project project,
java.lang.String oldProjectFileName,
java.lang.String newProjectFileName)
throws java.lang.Exception
- Generates a new XML document for a Maven project from its current XML
file and the changes made in the application.
Saves a backup of the previous version of the XML file under the path and
name of the original file plus the suffix '.bak' if the original file
is overridden.
- Parameters:
project
- The project to generate the document for.oldProjectFileName
- The full path of the current project file.newProjectFileName
- The full path to save the generated document
under.
- Throws:
java.lang.Exception
- if anything goes unexpectedly wrong
Copyright © 2005-2007 . All Rights Reserved.