[Dashg-commit] SF.net SVN: dashg:[32] trunk/dashg/src/com/mebigfatguy/dashg
Status: Pre-Alpha
Brought to you by:
dbrosius
From: <dbr...@us...> - 2008-10-28 19:27:10
|
Revision: 32 http://dashg.svn.sourceforge.net/dashg/?rev=32&view=rev Author: dbrosius Date: 2008-10-28 19:27:07 +0000 (Tue, 28 Oct 2008) Log Message: ----------- oi Modified Paths: -------------- trunk/dashg/src/com/mebigfatguy/dashg/DashGMethodSourcePrintingVisitor.java trunk/dashg/src/com/mebigfatguy/dashg/DashGTask.java Modified: trunk/dashg/src/com/mebigfatguy/dashg/DashGMethodSourcePrintingVisitor.java =================================================================== --- trunk/dashg/src/com/mebigfatguy/dashg/DashGMethodSourcePrintingVisitor.java 2008-10-28 19:25:16 UTC (rev 31) +++ trunk/dashg/src/com/mebigfatguy/dashg/DashGMethodSourcePrintingVisitor.java 2008-10-28 19:27:07 UTC (rev 32) @@ -23,7 +23,6 @@ import org.objectweb.asm.AnnotationVisitor; import org.objectweb.asm.Attribute; -import org.objectweb.asm.ClassWriter; import org.objectweb.asm.Label; import org.objectweb.asm.MethodVisitor; import org.objectweb.asm.util.TraceClassVisitor; Modified: trunk/dashg/src/com/mebigfatguy/dashg/DashGTask.java =================================================================== --- trunk/dashg/src/com/mebigfatguy/dashg/DashGTask.java 2008-10-28 19:25:16 UTC (rev 31) +++ trunk/dashg/src/com/mebigfatguy/dashg/DashGTask.java 2008-10-28 19:27:07 UTC (rev 32) @@ -37,7 +37,6 @@ import org.objectweb.asm.ClassAdapter; import org.objectweb.asm.ClassReader; import org.objectweb.asm.ClassWriter; -import org.objectweb.asm.util.TraceClassVisitor; public class DashGTask extends Task { @@ -78,16 +77,13 @@ private void generateDashGFiles(File baseDirectory, String fName) { String packagePath; - String packageName; try { int sepPos = fName.lastIndexOf(File.separator); if (sepPos >= 0) { packagePath = fName.substring(0, sepPos); - packageName = packagePath.replaceAll("\\" + File.separator, "."); } else { packagePath = null; - packageName = null; } String fileBaseName = fName.substring(sepPos+1, fName.length() - ".class".length()); @@ -98,13 +94,13 @@ File dstSrcFile = new File(destDir, fileBaseName + ".java"); File dstClsFile = new File(destDir, fileBaseName + ".class"); - buildNewClass(new File(baseDirectory, fName), dstSrcFile, dstClsFile, packageName, fileBaseName); + buildNewClass(new File(baseDirectory, fName), dstSrcFile, dstClsFile, fileBaseName); } catch (Exception ioe) { throw new BuildException("Failed generating output files for file " + fName, ioe); } } - public void buildNewClass(File inputClass, File outputSrc, File outputClass, String packageName, String baseName) throws IOException { + public void buildNewClass(File inputClass, File outputSrc, File outputClass, String baseName) throws IOException { BufferedInputStream bis = null; BufferedOutputStream bos = null; PrintWriter pw = null; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |