jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1
  • MAVEN-1858

Problem with MAVEN and CLEARCASE integration

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Wish Wish
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Not A Bug
  • Affects Version/s: 1.0.2
  • Fix Version/s: 1.2
  • Component/s: jelly/ant integration
  • Labels:
    None
  • Environment:
    Maven 1.0.2 with plugins modifieds
    Using JAVA 1.4 / 1.5 / 1.6
    xdoclet-1.2-beta3
    Ant 1.6.1 / 1.7.0 / 1.7.1
    Clearcase 2002.05.00+
    Cygwin (1.5.25-15 version)

Description

Hello,

I'm trying to delete view-private files on the clearcase in the CYGWIN with MAVEN by editing the maven.xml

Command that I use to delete view-private archives:

cleartool ls -recurse -view_only | xargs rm -rf

The maven.xml contains the follow project:

<project
xmlns:ant="jelly:ant"
xmlns:j="jelly:core"
xmlns:maven="jelly:maven"
xmlns:u="jelly:util"
>

Tries:

1 (executing in maven.xml with in the cmd executable using a .bat with the exclusion view-private command):

<goal name="blabla">
<exec dir="${basedir}" executable="cmd">
<arg value="/c"/>
<arg value="limpa_resources.bat"/>
</exec>
</goal>

ERROR:

[exec] cleartool: Error: Unable to access "|": Invalid argument.
[exec] cleartool: Error: Unable to access "xargs": No such file or directory.
[exec] cleartool: Error: Unable to access "rm": No such file or directory.
[exec] cleartool: Error: Unable to access "-rf": No such file or directory.
[exec] [ERROR] Result: 1

OBSERVATION: The "pipe" is not recognized by the maven exec.


2 (executing in maven.xml with the exclusion view-private command):

<goal name="blabla">
<exec dir="${basedir}" executable="cleartool">
<arg line="ls -recurse -view_only | xargs rm -rf"/>
</exec>
</goal>

ERROR:

[exec] 'limpa_resources.bat' não é reconhecido como um comando interno
[exec] ou externo, um programa operável ou um arquivo em lotes.
[exec] [ERROR] Result: 1

OBSERVATION: I don't know why this happens, I also tried to do this in the DOS.

Well,

I wish to know if is possible to use the "pipe" command in the tag execution or by using a .bat that execute this command.

And I want to know if is possible do DO or NOT.

I accept suggestions.

I aprecciate the attention,

Tks,

Timóteo Soutello, from Brazil

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Timóteo Eduardo de Carvalho Soutello added a comment - 27/Mar/09 7:26 AM

Please, ignore the fix version 1.2. I putted that version wrongly.
Tks,
Timoteo

Show
Timóteo Eduardo de Carvalho Soutello added a comment - 27/Mar/09 7:26 AM Please, ignore the fix version 1.2. I putted that version wrongly. Tks, Timoteo
Hide
Permalink
Timóteo Eduardo de Carvalho Soutello added a comment - 27/Mar/09 7:38 AM

I tried to run the command by executing the .bat file again with another changes, and in the maven log appears like that :

[exec]
[exec] <dir>cleartool ls -recurse -view_only | xargs rm -rf
[exec] Is cannot possible to find the archive in lots.
[exec] [ERROR] Result: 1
BUILD SUCCESSFUL

OBS: The batch file is beeing readed but not executed.

Show
Timóteo Eduardo de Carvalho Soutello added a comment - 27/Mar/09 7:38 AM I tried to run the command by executing the .bat file again with another changes, and in the maven log appears like that : [exec] [exec] <dir>cleartool ls -recurse -view_only | xargs rm -rf [exec] Is cannot possible to find the archive in lots. [exec] [ERROR] Result: 1 BUILD SUCCESSFUL OBS: The batch file is beeing readed but not executed.
Hide
Permalink
Timóteo Eduardo de Carvalho Soutello added a comment - 12/May/09 9:47 AM

Verified that this issue isn't related with the maven.

Issue closed.

Show
Timóteo Eduardo de Carvalho Soutello added a comment - 12/May/09 9:47 AM Verified that this issue isn't related with the maven. Issue closed.

People

  • Assignee:
    Unassigned
    Reporter:
    Timóteo Eduardo de Carvalho Soutello
Vote (0)
Watch (1)

Dates

  • Created:
    27/Mar/09 7:15 AM
    Updated:
    12/May/09 9:47 AM
    Resolved:
    12/May/09 9:47 AM

Time Tracking

Estimated:
2d
Original Estimate - 2 days
Remaining:
2d
Remaining Estimate - 2 days
Logged:
Not Specified
Time Spent - Not Specified
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.