From: <eg...@us...> - 2009-05-04 14:09:51
|
Revision: 14580 http://cdk.svn.sourceforge.net/cdk/?rev=14580&view=rev Author: egonw Date: 2009-05-04 14:09:38 +0000 (Mon, 04 May 2009) Log Message: ----------- Also export packages of data files Modified Paths: -------------- cdk-eclipse/trunk/src/main/net/sf/cdk/tools/CDKModule.java Modified: cdk-eclipse/trunk/src/main/net/sf/cdk/tools/CDKModule.java =================================================================== --- cdk-eclipse/trunk/src/main/net/sf/cdk/tools/CDKModule.java 2009-05-03 05:03:13 UTC (rev 14579) +++ cdk-eclipse/trunk/src/main/net/sf/cdk/tools/CDKModule.java 2009-05-04 14:09:38 UTC (rev 14580) @@ -133,6 +133,24 @@ } } reader.close(); + file = new File( + root + File.separator + "src" + + File.separator + "META-INF" + + File.separator + name + ".datafiles"); + if (file.exists()) { + reader = new BufferedReader(new FileReader(file)); + line = reader.readLine(); + while (line != null) { + line = line.trim(); + if (line.length() > 0) { + String pkg = line.substring(0,line.lastIndexOf('/')); + pkg = pkg.replaceAll("\\/", "."); + if (!hasPackage(pkg)) addPackage(pkg); + } + line = reader.readLine(); + } + } + reader.close(); } public static CDKModule getInstance(String name, String root) throws Exception { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |