You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by la...@apache.org on 2011/10/25 23:39:33 UTC
svn commit: r1188935 - in
/incubator/airavata/trunk/modules/commons/gfac-schema/src:
main/java/org/apache/airavata/commons/gfac/util/SchemaUtil.java test/
test/java/
Author: lahiru
Date: Tue Oct 25 21:39:32 2011
New Revision: 1188935
URL: http://svn.apache.org/viewvc?rev=1188935&view=rev
Log:
fixing bug.
Added:
incubator/airavata/trunk/modules/commons/gfac-schema/src/test/
incubator/airavata/trunk/modules/commons/gfac-schema/src/test/java/
Modified:
incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/util/SchemaUtil.java
Modified: incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/util/SchemaUtil.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/util/SchemaUtil.java?rev=1188935&r1=1188934&r2=1188935&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/util/SchemaUtil.java (original)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/util/SchemaUtil.java Tue Oct 25 21:39:32 2011
@@ -27,10 +27,6 @@ import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import org.apache.airavata.commons.gfac.type.Type;
-import org.apache.airavata.schemas.gfac.BatchApplicationDeploymentDescriptionDocument;
-import org.apache.airavata.schemas.gfac.BatchApplicationDeploymentDescriptionType;
-import org.apache.xmlbeans.XmlException;
-import org.apache.xmlbeans.XmlObject;
public class SchemaUtil {
public static Type parseFromXML(String xml) {
@@ -48,23 +44,4 @@ public class SchemaUtil {
e.close();
return x.toString();
}
-
-//
-// public static void main(String[] args) throws XmlException {
-//
-// BatchApplicationDeploymentDescriptionDocument t = BatchApplicationDeploymentDescriptionDocument.Factory.newInstance();
-//
-// BatchApplicationDeploymentDescriptionType t2 = BatchApplicationDeploymentDescriptionType.Factory.newInstance();
-//
-// t.setBatchApplicationDeploymentDescription(t2 );
-//
-// t2.setCpuCount(4);
-// System.out.println(t);
-//
-//
-// XmlObject k = XmlObject.Factory.parse(t.toString());
-// if (k instanceof BatchApplicationDeploymentDescriptionDocument ){
-// System.out.println("ooo");
-// }
-// }
}