axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r289374 - in /webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl: codegen/codegen-config.properties util/ConfigPropertyFileLoader.java
Date Fri, 16 Sep 2005 04:02:56 GMT
Author: deepal
Date: Thu Sep 15 21:02:48 2005
New Revision: 289374

URL: http://svn.apache.org/viewcvs?rev=289374&view=rev
Log:
fixed codegen class to work with IDEA pluging , it had some CCL problems

Modified:
    webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/codegen-config.properties
    webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/ConfigPropertyFileLoader.java

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/codegen-config.properties
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/codegen-config.properties?rev=289374&r1=289373&r2=289374&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/codegen-config.properties
(original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/codegen-config.properties
Thu Sep 15 21:02:48 2005
@@ -23,7 +23,6 @@
 # Default language, this is the default language that would be picked when no language is
specified. it should be
 # one of the languages specified above
 codegen.languages.default=java
-
 #####################################################################################################################
 ########################  Language specific section #################################################################
 #####################################################################################################################

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/ConfigPropertyFileLoader.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/ConfigPropertyFileLoader.java?rev=289374&r1=289373&r2=289374&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/ConfigPropertyFileLoader.java
(original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/ConfigPropertyFileLoader.java
Thu Sep 15 21:02:48 2005
@@ -2,10 +2,12 @@
 
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.FileInputStream;
 import java.util.Enumeration;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Properties;
+import java.net.URL;
 
 /**
  * Tries to load the properties from the config properties
@@ -31,7 +33,13 @@
 
     static{
         try {
-            InputStream stream = Object.class.getResourceAsStream("/org/apache/axis2/wsdl/codegen/codegen-config.properties");
+
+            InputStream stream =ConfigPropertyFileLoader.class.getResourceAsStream("/org/apache/axis2/wsdl/codegen/codegen-config.properties");
+            if (stream ==null) {
+                URL url = ConfigPropertyFileLoader.class.getResource("/org/apache/axis2/wsdl/codegen/codegen-config.properties");
+                stream = new FileInputStream(url.toString());
+            }
+//            InputStream stream = Object.class.getResourceAsStream("/org/apache/axis2/wsdl/codegen/codegen-config.properties");
             Properties props = new Properties();
             props.load(stream);
 



Mime
View raw message