Hi everyone
I have an issue regarding clearantlib
I try to get a stream baselin with a custom task defined as follow

[...]

/***************************************************************************
     * Validate parameter *

 **************************************************************************/
    void validateParameters() {
        if (getStream() == null)
            throw new BuildException("Stream name not present");
        if (getPvob() == null)
            throw new BuildException(
                    "vob name not presentt");
        if (getProperty() == null)
            throw new BuildException(" 'property' est obligatoire");
    }
 String buildCommand() {
        try{

            return "desc -fmt \"%[found_bls]CXp\" stream:" + getStream() +
"@\\"
            + getPvob();

        }
        catch(IllegalArgumentException iae){
            iae.printStackTrace();
            return null;
        }
    }

//eval method used by ant
public boolean eval() {
        System.out.println("**** in eval ****");

try {
            validerParametresRequis();

            Argument arg = this.createArg();
            String lCommande=buildCommand();
            if(lCommande==null)throw new BuildException("Command cleartool
incorrect !");
            arg.setLine(buildCommand());
            this.setOutputproperty(getProperty());
            this.setFailonerror(true);
            System.out.println(lCommand);
            super.execute();
            return true;
        } catch (BuildException e) {
            System.err.println("**** ERROR *** Trace:");
            e.printStackTrace();


        }
        return false;
    }




Where I struggle is that system ou are not shown in console (So no logging
possible)

When I execute with verbose switch  I get

test:
parsing buildfile
jar:file:/C:/apache-ant-1.7.0/lib/Tasks-LQ.jar!/com/lq/ant/clearcase/antlib.xml
with URI = jar:file:/C:/apache-ant-1.7.0/lib/Tasks-LQ.jar!/
[lq:obtenirBaseline] Current OS is Windows XP
[lq:obtenirBaseline] Executing 'cleartool'
[lq:obtenirBaseline] The ' characters around the executable and arguments
are
[lq:obtenirBaseline] not part of the command.
Property "clearcase.lastbaseline.name" has not been set
Property "cleacase.lastbaseline.name" has not been set

BUILD SUCCESSFUL
Total time: 0 seconds


the stream exist everything should be fine but i'm stuck on this issue..


Any clue ?


Thanks in advance :)

--
Laurent

Reply via email to