geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r388768 - /geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/GenModelModifierMojo.java
Date Sat, 25 Mar 2006 15:05:41 GMT
Author: sppatel
Date: Sat Mar 25 07:05:40 2006
New Revision: 388768

URL: http://svn.apache.org/viewcvs?rev=388768&view=rev
Log: (empty)

Modified:
    geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/GenModelModifierMojo.java

Modified: geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/GenModelModifierMojo.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/GenModelModifierMojo.java?rev=388768&r1=388767&r2=388768&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/GenModelModifierMojo.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/GenModelModifierMojo.java
Sat Mar 25 07:05:40 2006
@@ -61,6 +61,10 @@
 	 * @see org.apache.maven.plugin.Mojo#execute()
 	 */
 	public void execute() throws MojoExecutionException, MojoFailureException {
+		
+		if(!genmodel.exists()) 
+			throw new MojoFailureException(genmodel.getAbsolutePath() + " " + "does not exist.");
+		
 		DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
 		TransformerFactory transformerFactory = TransformerFactory.newInstance();
 		try {
@@ -73,7 +77,7 @@
 				String attribute = (String) j.next();
 				String value = (String) attributes.get(attribute);
 				root.setAttribute(attribute, value);
-				getLog().info("Attribute " + attribute + " : " + value);
+				getLog().debug("Attribute " + attribute + " : " + value);
 			}
 			Source src = new DOMSource(doc);
 			Result result = new StreamResult(new FileOutputStream(genmodel));



Mime
View raw message