Ticket #21 (closed task: fixed)

Opened 3 years ago

Last modified 2 years ago

Issue with the build script

Reported by: Helder Magalhães Assigned to: Jan-Klaas Kollhof
Priority: highest Milestone:
Component: other Version: 1.x
Severity: trivial Keywords: None
Cc: None

Description

First of all, I tried to build jsolait from scratch a few weeks ago, something that couldn't do, so I gave up for a while, thinking it was some minor bug in the jsolait's source at that time. The symptom was a somehow quiet "Path not found" error message. :-(

Today, I decided to try again. Again, the symptom was the same but the willing to find out why was stronger! :-D

After a few source "sniffing", the problem was isolated: if a build directory didn't exist previously, the script failed. That's because it attempted to create a ../build/jsolait when there was no ../build.

Fixing the problem can be done in several (at least two! :-)) ways:

1. Create a small batch file (my first quick+dirty solution):

cd ..
::mkdir build
cd tools

cscript /nologo "PATH_TO_JSOLAIT\jsolait\trunk\jsolait\jsolait.wsf" "file://PATH_TO_JSOLAIT/jsolait/trunk/tools/build.js"

2. Change the build.js file (second attempt, a little more elegant):

[...]
    mod.buildBasePath = '../build';
    mod.buildPath = '../build/jsolait';
[...]
    mod.__main__=function(){
        
        this.gn = new lang.GlobalNode();
        try{
            fs.createFolder(mod.buildBasePath);
            fs.createFolder(mod.buildPath);
        }catch(e){
            print("Could not create the build's destination directory!");
        }

        mod.buildDir(fs.getFolder(mod.sourcePath), fs.getFolder(mod.buildPath));
        try{
            fs.createFolder(mod.docPath);
        }catch(e){
            print("Could not create the documentation's destination directory!");
        }
[...]

Hope that this may help! ;-)

(Once again) congratulations on the jsolait project,

Helder

Change History

03/22/06 11:06:42 changed by Jan-Klaas Kollhof

  • status changed from new to closed.
  • resolution set to fixed.

ah, that bloody build script ...

06/28/06 10:16:56 changed by Jan-Klaas Kollhof

  • summary changed from Issue with the "build" script to Issue with the build script.