maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-components/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/discover LegacyArtifactDiscoverer.java
Date Fri, 01 Apr 2005 01:01:20 GMT
brett       2005/03/31 17:01:20

  Modified:    sandbox/repoclean/src/main/bash repoclean.sh
               sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/discover
                        LegacyArtifactDiscoverer.java
  Log:
  fix for windows, add profiling if needed
  
  Revision  Changes    Path
  1.4       +10 -1     maven-components/sandbox/repoclean/src/main/bash/repoclean.sh
  
  Index: repoclean.sh
  ===================================================================
  RCS file: /home/cvs/maven-components/sandbox/repoclean/src/main/bash/repoclean.sh,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- repoclean.sh	1 Apr 2005 00:35:51 -0000	1.3
  +++ repoclean.sh	1 Apr 2005 01:01:20 -0000	1.4
  @@ -19,4 +19,13 @@
     CP=`cygpath -pw $CP`
   fi
   
  -java -classpath ${CP} org.apache.maven.tools.repoclean.Main $* | tee repoclean-log.txt
  +JAVA_OPTS=""
  +
  +if [ "$1" == "profile" ]; then
  +  JAVA_OPTS="-agentlib:yjpagent=onexit=memory"
  +  # You need to customise this path for your environment
  +  export PATH=$PATH:/usr/local/yourkit/bin/win32
  +  shift
  +fi
  +
  +java $JAVA_OPTS -classpath ${CP} org.apache.maven.tools.repoclean.Main $* | tee repoclean-log.txt
  
  
  
  1.4       +1 -1      maven-components/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/discover/LegacyArtifactDiscoverer.java
  
  Index: LegacyArtifactDiscoverer.java
  ===================================================================
  RCS file: /home/cvs/maven-components/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/discover/LegacyArtifactDiscoverer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LegacyArtifactDiscoverer.java	1 Apr 2005 00:24:44 -0000	1.3
  +++ LegacyArtifactDiscoverer.java	1 Apr 2005 01:01:20 -0000	1.4
  @@ -68,7 +68,7 @@
       private Artifact buildArtifact( String path, Reporter reporter )
           throws Exception
       {
  -        StringTokenizer tokens = new StringTokenizer( path, "/" );
  +        StringTokenizer tokens = new StringTokenizer( path, "/\\" );
   
           int numberOfTokens = tokens.countTokens();
   
  
  
  

Mime
View raw message