WOKStep_ccl.tcl
WOKStep_frontal.tcl
WOKStep_TclLibIdep.tcl
+WOKStep_JavaCompile.tcl
+WOKStep_JavaHeader.tcl
class ServerExtract;
class ClientExtract;
class EngineExtract;
+ class JiniExtract;
class ExtractExecList;
<< "Failed : lib" << ar->TargetName() << ".a" << endm;
SetFailed();
break;
+ default: break;
}
ashell->NoLog();
ashell->UnLock();
case WOKBuilder_NotDefined:
SetFailed();
return result;
- }
+ default: break;
+ }
}
return result;
}
outfile = new WOKernel_File(outent->Path()->FileName(), Unit(), sourcetype);
istemplate = Standard_True;
break;
+ default: break;
}
outfile->GetPath();
case WOKBuilder_Failed:
ErrorMsg << "WOKStep_Extract::Execute" << "Failed : " << entity->Name() << endm;
break;
+ default: break;
}
}
fails->Append(infile);
ErrorMsg << "WOKStep_CodeGenerate::Execute" << "Failed : " << infile->File()->Name() << endm;
break;
+ default: break;
}
}
fails->Append(infile);
ErrorMsg << "WOKStep_Compile::Execute" << "Failed : " << infile->File()->Name() << endm;
break;
+ default: break;
}
}
<< "Failed : " << libname << endm;
SetFailed();
break;
+ default: break;
}
ashell->UnLock();
case WOKMake_Failed:
case WOKMake_Unprocessed:
break;
+ default: break;
}
SetStatus(status);
return;
outfile = new WOKernel_File(outent->Path()->FileName(), Unit(), sourcetype);
istemplate = Standard_True;
break;
+ default: break;
}
outfile->GetPath();
ErrorMsg << "WOKStep_Extract::Execute" << "Failed : " << entity->Name() << endm;
break;
+ default: break;
}
}
<< "========> " << astep->SubCode() << " is still unprocessed" << endm;
ok=Standard_False;
break;
+ default: break;
}
AddExecDepItem(infile,outfile, Standard_True);
case WOKBuilder_NotDefined:
SetFailed();
return result;
+ default: break;
}
}
return result;
outidep->SetLocateFlag(Standard_True);
- WOKTools_MapOfHAsciiString& knownunits = BuildProcess()->KnownUnits();
-
if(InternFile.IsNull() && InFiles->Length())
{
for(Standard_Integer i=1; i<=InFiles->Length(); i++)
<< "========> " << astep->SubCode() << " is still unprocessed" << endm;
ok=Standard_False;
break;
+ default: break;
}
Handle(TCollection_HAsciiString) Theid = WOKMake_Step::StepOutputID(Unit()->Name(),
astep->Code(),
case WOKMake_Failed:
case WOKMake_Unprocessed:
break;
+ default: break;
}
SetStatus(status);
ErrorMsg << "WOKStep_Link::ExecuteLink" << "Failed : " << mytarget << endm;
SetFailed();
break;
+ default: break;
}
ashell->UnsetEcho();
Handle(WOKMake_OutputFile) alib;
Handle(WOKernel_File) afile;
Handle(WOKernel_UnitNesting) anesting;
- WOKBuilder_LibReferenceType reftype;
+ WOKBuilder_LibReferenceType reftype = WOKBuilder_FullPath;
static Handle(TCollection_HAsciiString) libtype = new TCollection_HAsciiString("library");
Handle(TCollection_HAsciiString) libname;
if(anesting->IsKind(STANDARD_TYPE(WOKernel_Workbench)))
{
- reftype = WOKBuilder_FullPath;
}
else
{
{
anit.AddInStack(Unit()->Name(), WOKBuilder_Engine);
}
+ else if (Unit()->TypeCode() == 'j')
+ {
+ anit.AddInStack(Unit()->Name(), WOKBuilder_Client);
+ }
+
while(anit.More() && !stop)
#include <WOKStep_ProcessStep.ixx>
+#include <WOKUtils_AdmFile.hxx>
+
#define READBUF_SIZE 1024
#ifndef WNT
{
break;
}
- *ptr++;
+ ++ptr;
}
*unitptr = '\0';
}
}
+ DOT = Unit () -> Params ().Eval ( "%FILENAME_FILES" );
+ aname = new TCollection_HAsciiString ( "source" );
+ afile = Locator () -> Locate ( Unit () -> Name (), aname, DOT );
+
+ if ( !afile.IsNull () ) {
+
+ WOKUtils_AdmFile afiles ( afile -> Path () );
+ Handle( TCollection_HAsciiString ) p = new TCollection_HAsciiString ( "privinclude" );
+ Handle( TColStd_HSequenceOfHAsciiString ) s;
+
+ s = afiles.Read ();
+
+ if ( !s.IsNull () )
+
+ for ( i = 1; i <= s -> Length (); ++i ) {
+
+ Standard_Integer j;
+
+ DOT = s -> Value ( i );
+
+ DOT -> LeftAdjust ();
+ DOT -> RightAdjust ();
+
+ if ( ( j = DOT -> Search ( ":" ) ) != -1 ) {
+
+ aname = DOT -> SubString ( 1, j - 1 );
+
+ afile = Locator () -> Locate ( aname, p, new TCollection_HAsciiString ( "" ) );
+
+ if ( !afile.IsNull () && !amap.Contains ( afile->Path () -> Name () ) ) {
+
+ aseq -> Append ( afile -> Path () );
+ amap.Add( afile -> Path () -> Name () );
+
+ } // end if
+
+ } // end if
+
+ } // end for
+
+ } // end if
+
return aseq;
}
astr->LeftAdjust();
astr->RightAdjust();
-
- afile = Locator()->Locate(Unit()->Name(), sourcetype, astr);
+
+ if ( astr -> Search ( ":" ) != -1 ) {
+
+ afile = Locator () -> Locate ( astr );
+
+ } else afile = Locator()->Locate(Unit()->Name(), sourcetype, astr);
if(afile.IsNull() == Standard_True)
{
Handle(TCollection_HAsciiString) current = TheUnit->Name();
- Standard_Integer udidx = myuds.FindIndex(current);
-
mytreated.Add(current);
Handle(TCollection_HAsciiString) curtk = GetTKForUnit(current);
-proc WOKStep_TclLibIdep::AdmFileType {} {
+proc WOKStep_TclLibIdep:AdmFileType {} {
return "stadmfile";
}
-proc WOKStep_TclLibIdep::OutputDirTypeName {} {
+proc WOKStep_TclLibIdep:OutputDirTypeName {} {
return "sttmpfile";
}
-proc WOKStep_TclLibIdep::HandleInputFile { ID } {
+proc WOKStep_TclLibIdep:HandleInputFile { ID } {
scan $ID "%\[^:\]:%\[^:\]:%\[^:\]" unit type name
if {$name == "PACKAGES"} {
return 0
}
-proc WOKStep_TclLibIdep::Execute { unit args } {
+proc WOKStep_TclLibIdep:Execute { unit args } {
- msgprint -i -c "WOKStep_TclLibIdep::Execute" "Build ImplDep"
+ msgprint -i -c "WOKStep_TclLibIdep:Execute" "Build ImplDep"
set unitname [wokinfo -n $unit]
set packfile [woklocate -p $file $unit]
if {[clength $packfile] == 0} {
- msgprint -e -c "WOKStep_TclLibIdep::Execute" "Could not locate PACKAGES for unit $unit"
+ msgprint -e -c "WOKStep_TclLibIdep:Execute" "Could not locate PACKAGES for unit $unit"
return 1;
} else {
for_file anud $packfile {
{
Handle(WOKernel_File) afile;
Handle(TCollection_HAsciiString) sourcetype = new TCollection_HAsciiString("source");
- Standard_Integer i;
// le fichier PACKAGES
WOKUtils_Param params = Unit()->Params();
case WOKBuilder_Failed:
SetFailed();
break;
+ default: break;
}
}
-proc WOKStep_ccl::AdmFileType {} {
+proc WOKStep_ccl:AdmFileType {} {
return admfile;
}
-proc WOKStep_ccl::OutputDirTypeName {} {
+proc WOKStep_ccl:OutputDirTypeName {} {
return tmpdir;
}
-proc WOKStep_ccl::HandleInputFile { ID } {
+proc WOKStep_ccl:HandleInputFile { ID } {
scan $ID "%\[^:\]:%\[^:\]:%\[^:\]" unit type name
}
}
-proc WOKStep_ccl::Execute { unit args } {
+proc WOKStep_ccl:Execute { unit args } {
- msgprint -i -c "WOKStep_ccl::Execute" "Processing unit : $unit"
- msgprint -i -c "WOKStep_ccl::Execute"
+ msgprint -i -c "WOKStep_ccl:Execute" "Processing unit : $unit"
+ msgprint -i -c "WOKStep_ccl:Execute"
set unitname [wokinfo -n $unit]
set targetid "$unitname:ccldrv:$unitname.ccl"
-proc WOKStep_frontal::AdmFileType {} {
+proc WOKStep_frontal:AdmFileType {} {
return stadmfile;
}
-proc WOKStep_frontal::OutputDirTypeName {} {
+proc WOKStep_frontal:OutputDirTypeName {} {
return sttmpdir;
}
-proc WOKStep_frontal::HandleInputFile { ID } {
+proc WOKStep_frontal:HandleInputFile { ID } {
return 1;
}
-proc WOKStep_frontal::ExecuteOldFrontal {unit args} {
+proc WOKStep_frontal:ExecuteOldFrontal {unit args} {
global WOK_GLOBALS
set pk [wokinfo -n $unit]
msgprint -i "Copying binary file Lelisp from ${bin}"
if [catch {eval "exec cp $from [pwd]"} res] {
- msgprint -e -c "WOKStep_frontal::Execute" $res
+ msgprint -e -c "WOKStep_frontal:Execute" $res
return 1
}
set licensefile [woklocate -p CCLFrontal:datafile:[wokparam -e %Ilog_File] $wb]
if { $licensefile == "" } {
- msgprint -c "WOKStep_frontal::Execute" -e "Unable to locate the Ilog license file"
+ msgprint -c "WOKStep_frontal:Execute" -e "Unable to locate the Ilog license file"
return 1;
}
- msgprint -c "WOKStep_frontal::Execute" -i "Building $pk"
+ msgprint -c "WOKStep_frontal:Execute" -i "Building $pk"
if [catch {eval "exec /bin/env ILOG_LICENSE_FILE=$licensefile $exec -f tmp.ccl << (end)"} result] {
msgprint -e "$result"
set resexe [wokinfo -p executable:$pk $unit]
set rescore [wokinfo -p corelisp:${pk}.core $unit]
- msgprint -i -c "WOKStep_frontal::Execute" "Updating $resexe"
+ msgprint -i -c "WOKStep_frontal:Execute" "Updating $resexe"
wokparam -s "%LeLispFile=$from"
wokparam -s "%CoreFile=$rescore"
close $fidexe
chmod 0755 $resexe
} else {
- msgprint -e -c "WOKStep_frontal::Execute" "Enable to generate $rescore"
- msgprint -e -c "WOKStep_frontal::Execute" $res
+ msgprint -e -c "WOKStep_frontal:Execute" "Enable to generate $rescore"
+ msgprint -e -c "WOKStep_frontal:Execute" $res
return 1
}
- msgprint -i -c "WOKStep_frontal::Execute" "Updating $rescore"
+ msgprint -i -c "WOKStep_frontal:Execute" "Updating $rescore"
if [catch {eval "exec cp $pk.core $rescore"} result] {
- msgprint -e -c "WOKStep_frontal::Execute" $result
+ msgprint -e -c "WOKStep_frontal:Execute" $result
}
-proc WOKStep_frontal::ExecuteNewFrontal { unit args } {
+proc WOKStep_frontal:ExecuteNewFrontal { unit args } {
global WOK_GLOBALS
set pk [wokinfo -n $unit]
set fileoutmsg [wokinfo -p cmpmsgfile:${pk}_Cmp.us $unit]
set fileoutoldmsg [wokinfo -p msgfile:${pk}.us $unit]
- msgprint -i -c "WOKStep_frontal::Execute" "Updating $resexe"
+ msgprint -i -c "WOKStep_frontal:Execute" "Updating $resexe"
wokparam -s "%CCLFile=$fileout"
wokparam -s "%MsgCmpFile=$fileoutmsg"
wokparam -s "%MsgFile=$fileoutoldmsg"
chmod 0755 $resexe
}
} else {
- msgprint -e -c "WOKStep_frontal::Execute" "Enable to generate $rescore"
- msgprint -e -c "WOKStep_frontal::Execute" $res
+ msgprint -e -c "WOKStep_frontal:Execute" "Enable to generate $rescore"
+ msgprint -e -c "WOKStep_frontal:Execute" $res
return 1
}
return 0;
}
-proc WOKStep_frontal::ExecuteMessages { unit args } {
+proc WOKStep_frontal:ExecuteMessages { unit args } {
set pk [wokinfo -n $unit]
return 0
}
-proc WOKStep_frontal::Execute { unit args } {
+proc WOKStep_frontal:Execute { unit args } {
set pk [wokinfo -n $unit]
set resold 0
catch {
if {$pk != "KernelFrontal"} {
if {[wokparam -e %Station] != "wnt"} {
- set resold [WOKStep_frontal::ExecuteOldFrontal $unit $args]
+ set resold [WOKStep_frontal:ExecuteOldFrontal $unit $args]
}
}
}
- set resnew [WOKStep_frontal::ExecuteNewFrontal $unit $args]
+ set resnew [WOKStep_frontal:ExecuteNewFrontal $unit $args]
- set resmes [WOKStep_frontal::ExecuteMessages $unit $args]
+ set resmes [WOKStep_frontal:ExecuteMessages $unit $args]
return [expr [expr $resold && $resnew] || $resmes]
}