[EMAIL PROTECTED] wrote:

+ public URL getArtifact(
+ final String artifact, final String version, final String type )
+ throws RepositoryException
+ {
+ int n = artifact.indexOf( SEPERATOR ) ;
+ + if( n < 1 )
+ {
+ final String error = "Invalid artifact name: " + artifact ;
+ throw new RepositoryException( error ) ;
+ }
+ + final String group = artifact.substring( 0, n ) ;
+ final String name = artifact.substring( n + 1 ) ; + return getArtifact( group, name, version, type ) ;
+ }



Just thinking - if n < 1, then assign the artifact value to both group and name.


Stephen.




--


Stephen J. McConnell
mailto:[EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to