* minor development configuration and build changes.
* reduce the usage of non official sun api.
This commit is contained in:
parent
a8c7b3863b
commit
f379b187f8
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry excluding="org/compiere/report/ReportExporter.java" kind="src" path="src"/>
|
<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.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"/>
|
<classpathentry kind="output" path="build"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#Wed Mar 24 23:21:11 CET 2010
|
#Wed Jul 14 15:38:16 MYT 2010
|
||||||
eclipse.preferences.version=1
|
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.codegen.targetPlatform=1.6
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.6
|
org.eclipse.jdt.core.compiler.compliance=1.6
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
|
|
@ -7,9 +7,9 @@ Bundle-ClassPath: JasperReports.jar
|
||||||
Export-Package: org.compiere.interfaces,
|
Export-Package: org.compiere.interfaces,
|
||||||
org.compiere.report,
|
org.compiere.report,
|
||||||
org.compiere.utils
|
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.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",
|
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
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
source.JasperReports.jar = src/
|
source.JasperReports.jar = src/
|
||||||
output.JasperReports.jar = build
|
output.JasperReports.jar = build/
|
||||||
bin.includes = META-INF/,\
|
bin.includes = META-INF/,\
|
||||||
JasperReports.jar
|
JasperReports.jar
|
||||||
|
|
|
@ -8,9 +8,6 @@ import java.security.MessageDigest;
|
||||||
|
|
||||||
import org.apache.commons.codec.binary.Base64;
|
import org.apache.commons.codec.binary.Base64;
|
||||||
|
|
||||||
import sun.security.provider.Sun;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author rlemeill
|
* @author rlemeill
|
||||||
* @author Michael Judd BF [ 2736817 ] - remove deprecated BASE64Encoder classes
|
* @author Michael Judd BF [ 2736817 ] - remove deprecated BASE64Encoder classes
|
||||||
|
@ -19,12 +16,12 @@ import sun.security.provider.Sun;
|
||||||
public class DigestOfFile
|
public class DigestOfFile
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param mode ie MD5
|
* @param algorithm ie MD5
|
||||||
* @throws Exception
|
* @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
|
try
|
||||||
{
|
{
|
||||||
java.security.Security.addProvider(new Sun());
|
|
||||||
|
|
||||||
DigestOfFile md5DigestAgent = new DigestOfFile("MD5");
|
DigestOfFile md5DigestAgent = new DigestOfFile("MD5");
|
||||||
|
|
||||||
for (int argIndex = 0; argIndex < args.length; argIndex++)
|
for (int argIndex = 0; argIndex < args.length; argIndex++)
|
||||||
|
@ -124,7 +119,6 @@ public class DigestOfFile
|
||||||
//compute Hash of exisiting and downloaded
|
//compute Hash of exisiting and downloaded
|
||||||
String hashFile1;
|
String hashFile1;
|
||||||
String hashFile2;
|
String hashFile2;
|
||||||
java.security.Security.addProvider(new Sun());
|
|
||||||
try{
|
try{
|
||||||
DigestOfFile md5DigestAgent = new DigestOfFile("MD5");
|
DigestOfFile md5DigestAgent = new DigestOfFile("MD5");
|
||||||
hashFile1 = md5DigestAgent.digestAsBase64(file1);
|
hashFile1 = md5DigestAgent.digestAsBase64(file1);
|
||||||
|
@ -143,7 +137,6 @@ public class DigestOfFile
|
||||||
public static String GetLocalMD5Hash(File file)
|
public static String GetLocalMD5Hash(File file)
|
||||||
{
|
{
|
||||||
String hash;
|
String hash;
|
||||||
java.security.Security.addProvider(new Sun());
|
|
||||||
try{
|
try{
|
||||||
DigestOfFile md5DigestAgent = new DigestOfFile("MD5");
|
DigestOfFile md5DigestAgent = new DigestOfFile("MD5");
|
||||||
hash = md5DigestAgent.digestAsBase64(file);
|
hash = md5DigestAgent.digestAsBase64(file);
|
||||||
|
@ -162,7 +155,6 @@ public class DigestOfFile
|
||||||
public static String getMD5Hash(byte[] input)
|
public static String getMD5Hash(byte[] input)
|
||||||
{
|
{
|
||||||
String hash;
|
String hash;
|
||||||
java.security.Security.addProvider(new Sun());
|
|
||||||
try{
|
try{
|
||||||
DigestOfFile md5DigestAgent = new DigestOfFile("MD5");
|
DigestOfFile md5DigestAgent = new DigestOfFile("MD5");
|
||||||
hash = md5DigestAgent.digestAsBase64(input);
|
hash = md5DigestAgent.digestAsBase64(input);
|
||||||
|
|
Loading…
Reference in New Issue