geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r545683 - in /geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.sources.dependence: pom.xml src/org/apache/geronimo/j2g/sources/dependence/NodesVisitor.java
Date Sat, 09 Jun 2007 02:30:12 GMT
Author: dwoods
Date: Fri Jun  8 19:30:11 2007
New Revision: 545683

URL: http://svn.apache.org/viewvc?view=rev&rev=545683
Log:
GERONIMO-3232 Change J2G sources tool to pickup import changes on the fly instead of needing
to be run twice

Modified:
    geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.sources.dependence/pom.xml
    geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.sources.dependence/src/org/apache/geronimo/j2g/sources/dependence/NodesVisitor.java

Modified: geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.sources.dependence/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.sources.dependence/pom.xml?view=diff&rev=545683&r1=545682&r2=545683
==============================================================================
--- geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.sources.dependence/pom.xml (original)
+++ geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.sources.dependence/pom.xml Fri Jun
 8 19:30:11 2007
@@ -36,6 +36,13 @@
                     <include>plugin.xml</include>
                 </includes>
             </resource>
+			<resource>
+				<directory>src/org/apache/geronimo/j2g/sources/dependence/compatibility</directory>
+				<targetPath>org/apache/geronimo/j2g/sources/dependence/compatibility</targetPath>
+				<includes>
+					<include>*.java</include>
+				</includes>
+			</resource>
             <resource>
                 <directory>lib</directory>
                 <targetPath>lib</targetPath>
@@ -96,4 +103,4 @@
            	<version>${version}</version>
        	</dependency>
     </dependencies>
-</project>
\ No newline at end of file
+</project>

Modified: geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.sources.dependence/src/org/apache/geronimo/j2g/sources/dependence/NodesVisitor.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.sources.dependence/src/org/apache/geronimo/j2g/sources/dependence/NodesVisitor.java?view=diff&rev=545683&r1=545682&r2=545683
==============================================================================
--- geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.sources.dependence/src/org/apache/geronimo/j2g/sources/dependence/NodesVisitor.java
(original)
+++ geronimo/sandbox/j2g/plugins/org.apache.geronimo.j2g.sources.dependence/src/org/apache/geronimo/j2g/sources/dependence/NodesVisitor.java
Fri Jun  8 19:30:11 2007
@@ -97,6 +97,21 @@
 		linkedLibs = new HashSet();
 		imports = new HashSet();
 		wrongApiUsing = false;
+		
+		List compUnitList = unit.imports();
+		Iterator listIter = compUnitList.iterator();
+		while (listIter.hasNext()) {
+			ImportDeclaration impDec = (ImportDeclaration)listIter.next();
+			if (impDec.getName().isQualifiedName()) {
+				QualifiedName qualifiedName = (QualifiedName) impDec.getName();
+				String className = qualifiedName.getName().getIdentifier();
+				imports.add(className);
+			}
+			else {
+				SimpleName simpleName = (SimpleName) impDec.getName();
+				imports.add(simpleName.getIdentifier());
+			}
+		}
 	}
 
 	/**
@@ -351,4 +366,4 @@
 		return !wrongApiUsing;
 	}
 	
-}
\ No newline at end of file
+}



Mime
View raw message