-
Notifications
You must be signed in to change notification settings - Fork 195
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
Eliminating startcmd #1287
Comments
Instead of posting diffs here, please fork the dita-ot repository and send a pull request. |
Ok. I'll get back to you for details when I have tested the changes. Peter West "Are not all these who are speaking Galileans?" On 01/06/2012, at 3:51 PM, Jarno Elovirta wrote:
|
I experimented with this. If we currently have (some libraries omitted):
In the full easy install distribution package, we can just move everything to Ant's lib:
Based on a quick test, this works for JARs, but not for the property files. If you use |
What I've been looking at is, among other things, the integration of the building and the running of the distribution. That happens within the build anyway, because the documentation is generated by the constructed dost.jar and the other components. There is already provision for a local.properties file. I would use that, but access it only through an import of a new local.properties.ant file. See attached. The import of the local.properties.xml file gives access to the dita.dir, no matter whether it is included from the distribution build or from the top level of the distribution. I have only been able to give this imtermittent attention, but I will plug away at it. Peter Peter West "Are not all these who are speaking Galileans?" On 05/06/2012, at 7:12 PM, Jarno Elovirta wrote:
|
Jarno, I have been driven stark raving mad trying to follow is going on inside this build system. I have it working to a certain point, but I am now completely lost, and have made no progress for a week, on and off. The crash happens on in update-doc, and seems to have something to do with the catalog resolver. If I try to run build_demo.xml all separately, I get the same failure. And, what does "send a pull request" mean? Note that I have placed extra jars in the lib folder, and I am running without those elements in the CLASSPATH. Attached is the output from the build of 'dist'. You may see something obvious straight away. Peter West "Unless I see...I will not believe." On 01/06/2012, at 3:51 PM, Jarno Elovirta wrote:
|
I have a set of changes to the build files that implement this, and also fix #1332. I have committed them to my local repository. What do I do now? Peter West "Is not this the carpenter, the son of Mary...?" On 01/06/2012, at 3:51 PM, Jarno Elovirta wrote:
|
Send a pull request. |
See pull request at #1333 for the results of this. |
Closing as the command line tool handles the use case. |
Following my difficulties with the build of DITA-OT (see #1285) I have considered changes to the build files to make the process less arcane and obscure.
I propose modifying build.properties to include default values for the required elements of the class path, xercesImpl.jar, resolver.jar, etc. The defaults would be defined relative to
${lib.dir}
, i.e. src/main/lib. In over for this to work best, buildxml would be altered to definesrc.dir
andlib.dir
BEFORE reading build.properties, so that the build.xml definitions would take precedence.The required
CLASSPATH
for processes invoked by ant could then be set within the various build file components. Users of standard and minimal distributions would modify the build.properties file to indicate their preferred locations.The other part of startcmd is the setting of
ANT_OPTS
to the required memory for the java process. This is only required for the full-easy-install, which should be a hands-free install and run.There are two alternatives.
ANT_OPTS
to the appropriate values.$HOME/.ant/
. The build can check for the presence of this file. If present, keep going. If not, copy ant.conf to$HOME/.ant
, issue a message explaining what has happened, and get the user to start again.The great disadvantage of 2 is that the ant.conf file will be referenced for all ant builds. However, as this is part of full-easy, such users are unlikely to be using ant for other purposes.
Option 1 seems to me to be the cleanest. The ant distribution in tools will only be referenced by users of DITA-OT, so the
ANT_OPTS
can be specific to the OT.I will prepare diffs for the relevant files and post them to this issue.
The text was updated successfully, but these errors were encountered: