-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modifications to support logfile for MI output and other minor cleanup #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With regards to the .jar files:
- When you built the .jar files which version of javac did you use / target? I've been targeting 1.6 to allow the old Apply JDK to continue to work.
- Did anything really change with CSVToXML.jar (it will show up changed everytime it is rebuilt even if the underlying source files did not change). If not let's just revert it.
// Run the ModelInterface in batch mode | ||
String[] args = { "-b", mBatchFile }; | ||
InterfaceMain.main( args ); | ||
// String[] args = { "-b", mBatchFile }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can go ahead and get rid of this commented out code
Class-Path: jars/BaseX.jar jars/poi-contrib-3.0-alpha1.jar jars/jcommo | ||
n-1.0.0-rc1.jar jars/poi-scratchpad-3.0-alpha1.jar jars/jfreechart-1. | ||
0.0-pre2.jar jars/xalan.jar jars/poi-3.0-alpha1.jar | ||
Class-Path: jars/BaseX.jar jars/poi-contrib-3.0-alpha1.jar jars/jcommon-1.0.0-rc1.jar jars/poi-scratchpad-3.0-alpha1.jar jars/jfreechart-1.0.0-pre2.jar jars/xalan.jar jars/poi-3.0-alpha1.jar jars/jopt-simple-5.0.2.jar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has been my experience in the past that these manifest files are picky about the fixed width.
@@ -1763,6 +1763,7 @@ public void runBatch(Node command) { | |||
// should I print this error to the screen? | |||
} | |||
} | |||
boolean wasDBOpened = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given these changes are being incorporated in another branch (with some other fixes as well) it would be best to just revert these changes here.
@@ -146,6 +146,14 @@ private void openDB(String dbPath, Context contextIn) throws Exception { | |||
// and use it as the base path for finding all collections/containers | |||
System.setProperty("org.basex.DBPATH", path); | |||
|
|||
// TODO: worry about spaces? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is the same as the bug fix above? If so we should revert these as well so as to avoid merge conflicts later.
main.menuAdders.add(inputView); | ||
|
||
PrintStream stdout = System.out; | ||
if (opts.has("l")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess I don't have a strong opinion on this but should we move this up? Otherwise messages prior would still show up on the console instead of log. As far as I can tell this would just be the "Running headless?" message but if there were more diagnostics in say the constructor for DbViewer then those would get misplaced.
mBatchFile = aBatchFile; | ||
mLogFile = aLogFile; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check tabs vs spacing
I assume you'll get this via github, but just in case, I've cc'd you... See below.
|
…parsing of the options. In addtion add the option to print the JAVA_HOME for the JVM that is currently running. This helps us create a run GCAM wrapper script to set up paths to find the JVM dynamic library to run GCAM.
Yea, I wouldn't expect that to change compilation (although I have run into that in the past). This was from the perspective of the .jar files that get committed on the idea of we can just commit them using an older version of Java and not have to worry about users having to recompile them again for themselves.
I think this was just because I shared these changes with you via patch. Since I have them on anther branch let's just revert them here. |
* Some code clean up. * Revert some changes that will be made elsewhere. * Build jars for java 1.6 (Note this means we need to use joptsimple v4.9)
… on what it is and how to use it. In addtion we will default it to save the log in the GCAM "logs" directory.
Rich, we've decided to keep the logistical hurdles as low as we can we will take Github pull requests to their own feature branch and merge it into the master on our Bitbucket server. This way we can automatically (eventually automated at least) sync changes from Bitbucket to Github in just one direction. |
I made the changes we discussed. In one case I tweaked the indentation so I could see what was going on. I realize that expands the surface area of the diff, so let me know how you have tabs set up in VIM so I can configure emacs similarly to avoid gratuitous changes in the future.
The jopt-simple cmdline parser is pretty nice. It might be useful in XMLDBDriver, too.
The patches you sent me also show up as changes here. I also fixed a couple of spelling errors since I noticed them. Let me know if you'd rather I didn't. :~)