[Pixelle-commit] SF.net SVN: pixelle: [85] trunk/pixelle/src/com/mebigfatguy/pixelle/ PixelleTransf
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-06-26 03:59:03
|
Revision: 85
http://pixelle.svn.sourceforge.net/pixelle/?rev=85&view=rev
Author: dbrosius
Date: 2008-06-25 20:59:04 -0700 (Wed, 25 Jun 2008)
Log Message:
-----------
fix 'dump' to work in unix
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleTransformer.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleTransformer.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleTransformer.java 2008-06-26 03:24:15 UTC (rev 84)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleTransformer.java 2008-06-26 03:59:04 UTC (rev 85)
@@ -19,6 +19,7 @@
package com.mebigfatguy.pixelle;
import java.awt.image.BufferedImage;
+import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.security.AccessController;
@@ -106,7 +107,8 @@
FileOutputStream fos = null;
try
{
- fos = new FileOutputStream("c:\\temp\\" + name);
+ File clsFile = new File(System.getProperty("java.io.tmpdir"), name);
+ fos = new FileOutputStream(clsFile);
fos.write(byteCode);
fos.flush();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|