[tranche] r281 committed - Changed MakeRepositoryCertsTool to load configuration (so can use Time...

1 view
Skip to first unread message

tra...@googlecode.com

unread,
Jul 12, 2010, 5:20:20 PM7/12/10
to tranche-d...@googlegroups.com
Revision: 281
Author: bryanesmith
Date: Mon Jul 12 14:19:46 2010
Log: Changed MakeRepositoryCertsTool to load configuration (so can use
TimeUtil)
http://code.google.com/p/tranche/source/detail?r=281

Modified:
/src/org/tranche/users/MakeRepositoryCertsTool.java

=======================================
--- /src/org/tranche/users/MakeRepositoryCertsTool.java Tue Apr 27 10:26:55
2010
+++ /src/org/tranche/users/MakeRepositoryCertsTool.java Mon Jul 12 14:19:46
2010
@@ -18,6 +18,7 @@
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
+import org.tranche.ConfigureTranche;
import org.tranche.commons.DebugUtil;
import org.tranche.util.IOUtil;
import org.tranche.security.SecurityUtil;
@@ -26,6 +27,7 @@
/**
* <p>Creates a new default set of certificates that are to be used for a
Tranche repository.</p>
* @author James "Augie" Hill - augm...@gmail.com
+ * @author Bryan Smith - bryan...@gmail.com
*/
public class MakeRepositoryCertsTool {

@@ -85,9 +87,11 @@
return;
}
}
+
+ ConfigureTranche.load(args);

// flags
- for (int i = 0; i < args.length; i++) {
+ for (int i = 1; i < args.length; i++) {
if (args[i].equals("-d") || args[i].equals("--debug")) {
DebugUtil.setDebug(MakeRepositoryCertsTool.class,
true);
DebugUtil.setDebug(MakeUserZipFileTool.class, true);
@@ -604,6 +608,8 @@
} catch (Exception e) {
DebugUtil.debugErr(MakeRepositoryCertsTool.class, e);
if (!TestUtil.isTesting()) {
+
System.err.println(e.getClass().getSimpleName()+": "+e.getMessage());
+ e.printStackTrace(System.err);
System.exit(1);
} else {
return;

Reply all
Reply to author
Forward
0 new messages