* minor development configuration and build changes.

* reduce the usage of non official sun api.
This commit is contained in:
Heng Sin Low 2010-07-15 03:10:10 +08:00
parent a8c7b3863b
commit f379b187f8
5 changed files with 26 additions and 33 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="org/compiere/report/ReportExporter.java" kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="output" path="build"/>
</classpath>

View File

@ -1,5 +1,6 @@
#Wed Mar 24 23:21:11 CET 2010
#Wed Jul 14 15:38:16 MYT 2010
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error

View File

@ -7,9 +7,9 @@ Bundle-ClassPath: JasperReports.jar
Export-Package: org.compiere.interfaces,
org.compiere.report,
org.compiere.utils
Require-Bundle: org.adempiere.base;bundle-version="0.0.0",
Require-Bundle: org.adempiere.base;bundle-version="1.0.0",
org.adempiere.JasperReportsTools;bundle-version="1.0.0",
org.adempiere.client;bundle-version="0.0.0",
org.adempiere.client;bundle-version="1.0.0",
com.springsource.javax.ejb;bundle-version="3.0.0",
org.adempiere.tools;bundle-version="0.0.0"
org.adempiere.tools;bundle-version="1.0.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6

View File

@ -1,4 +1,4 @@
source.JasperReports.jar = src/
output.JasperReports.jar = build
output.JasperReports.jar = build/
bin.includes = META-INF/,\
JasperReports.jar

View File

@ -8,9 +8,6 @@ import java.security.MessageDigest;
import org.apache.commons.codec.binary.Base64;
import sun.security.provider.Sun;
/**
* @author rlemeill
* @author Michael Judd BF [ 2736817 ] - remove deprecated BASE64Encoder classes
@ -19,12 +16,12 @@ import sun.security.provider.Sun;
public class DigestOfFile
{
/**
* @param mode ie MD5
* @param algorithm ie MD5
* @throws Exception
*/
public DigestOfFile(String mode) throws Exception
public DigestOfFile(String algorithm) throws Exception
{
digestAgent = MessageDigest.getInstance(mode, "SUN");
digestAgent = MessageDigest.getInstance(algorithm);
}
/**
@ -95,8 +92,6 @@ public class DigestOfFile
{
try
{
java.security.Security.addProvider(new Sun());
DigestOfFile md5DigestAgent = new DigestOfFile("MD5");
for (int argIndex = 0; argIndex < args.length; argIndex++)
@ -124,7 +119,6 @@ public class DigestOfFile
//compute Hash of exisiting and downloaded
String hashFile1;
String hashFile2;
java.security.Security.addProvider(new Sun());
try{
DigestOfFile md5DigestAgent = new DigestOfFile("MD5");
hashFile1 = md5DigestAgent.digestAsBase64(file1);
@ -143,7 +137,6 @@ public class DigestOfFile
public static String GetLocalMD5Hash(File file)
{
String hash;
java.security.Security.addProvider(new Sun());
try{
DigestOfFile md5DigestAgent = new DigestOfFile("MD5");
hash = md5DigestAgent.digestAsBase64(file);
@ -162,7 +155,6 @@ public class DigestOfFile
public static String getMD5Hash(byte[] input)
{
String hash;
java.security.Security.addProvider(new Sun());
try{
DigestOfFile md5DigestAgent = new DigestOfFile("MD5");
hash = md5DigestAgent.digestAsBase64(input);