Rebasing from ant

B

benoit.beland

Hi,

I'm trying to do a rebase directly from the ant script:

<exec executable="cleartool" failonerror="true">
<arg value="rebase" />
<arg value="-view myviewname" />
<arg value="-recommended"/>
</exec>

Which gives me the following result:
[exec] cleartool: Error: Unrecognized option "-view myviewname"

If I run the following from the command line, it works fine:
cleartool rebase -view myviewname -recommended

Any help appreciated, thanks!
 
A

Andrew Thompson

On Feb 21, 8:07 am, (e-mail address removed) wrote:
....
<exec executable="cleartool" failonerror="true">
<arg value="rebase" />
<arg value="-view myviewname" />
<arg value="-recommended"/>
</exec>

Which gives me the following result:
[exec] cleartool: Error: Unrecognized option "-view myviewname"

It seems the value '-view myviewname' is
being taken as a single string.

Try..
<exec executable="cleartool" failonerror="true">
<arg value="rebase" />
<arg value="-view" />
<arg value="myviewname" />
<arg value="-recommended"/>
</exec>

As an aside. Did you have a Java question?

Andrew T.
 
B

benoit.beland

Thanks, it worked.

As for the type of question, sorry but I couldn't find a more specific
usenet group and with the level of activity in here, thought somebody
would know!

On Feb 21, 8:07 am, (e-mail address removed) wrote:
...
<exec executable="cleartool" failonerror="true">
<arg value="rebase" />
<arg value="-view myviewname" />
<arg value="-recommended"/>
</exec>
Which gives me the following result:
[exec] cleartool: Error: Unrecognized option "-view myviewname"

It seems the value '-view myviewname' is
being taken as a single string.

Try..
<exec executable="cleartool" failonerror="true">
<arg value="rebase" />
<arg value="-view" />
<arg value="myviewname" />
<arg value="-recommended"/>
</exec>

As an aside. Did you have a Java question?

Andrew T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,470
Messages
2,571,809
Members
48,797
Latest member
PeterSimpson
Top