|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Showv stopper issue with clearAntLibHi 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 |
|
|
Re: Showv stopper issue with clearAntLibLaurent Morissette wrote:
> Hi everyone > I have an issue regarding clearantlib > I try to get a stream baselin with a custom task defined as follow > > Where I struggle is that system ou are not shown in console (So no logging > possible) Ant does tricks to capture the log, you shouldnt print to it. Notice how every ant task in An't own codebase uses the log() method: log("we are here", Project.MSG_VERBOSE); --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
| Free embeddable forum powered by Nabble | Forum Help |