Apply patchfile.txt from M AVEN-8
6 7 git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114129 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
75a04ea07d
commit
ca245faf3e
@ -70,7 +70,7 @@ import java.util.Iterator;
|
||||
*
|
||||
* @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
|
||||
*
|
||||
* @version $Id: SnapshotResolver.java,v 1.13 2003/09/29 23:52:00 jvanzyl Exp $
|
||||
* @version $Id: SnapshotResolver.java,v 1.14 2003/09/30 07:58:00 dion Exp $
|
||||
*/
|
||||
public class SnapshotResolver
|
||||
extends AbstractPomTransformer
|
||||
@ -92,7 +92,7 @@ public class SnapshotResolver
|
||||
public String getNodeContent( Node node )
|
||||
throws Exception
|
||||
{
|
||||
String timestampVersion = null;
|
||||
String timestampVersion = "SNAPSHOT";
|
||||
|
||||
Node idNode = node.selectSingleNode( "id" );
|
||||
|
||||
@ -114,7 +114,7 @@ public class SnapshotResolver
|
||||
artifactId = artifactIdNode.getText();
|
||||
}
|
||||
|
||||
Node typeIdNode = node.selectSingleNode( "groupId" );
|
||||
Node typeIdNode = node.selectSingleNode( "type" );
|
||||
|
||||
if ( typeIdNode != null )
|
||||
{
|
||||
@ -133,7 +133,7 @@ public class SnapshotResolver
|
||||
{
|
||||
String remoteRepo = (String) i.next();
|
||||
String url = remoteRepo + "/" + groupId + "/" + artifactType + "s/" + artifactId + "-snapshot-version";
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
HttpUtils.getFile( url,
|
||||
@ -157,10 +157,6 @@ public class SnapshotResolver
|
||||
{
|
||||
timestampVersion = FileUtils.fileRead( snapshotVersionFile.getPath() );
|
||||
}
|
||||
else
|
||||
{
|
||||
timestampVersion = "SNAPSHOT";
|
||||
}
|
||||
}
|
||||
|
||||
return timestampVersion;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user