final File link = resource.getArtifact( project, name, alias ); path.createPathElement().setLocation( link );
final File file = resource.getArtifact( project, name ); path.createPathElement().setLocation( file ); String alias = type.getAlias(); if( null != alias ) {     final String spec = resource.getInfo().getPath( type, true ); final File link = new File( m_index.getCacheDirectory(), spec ); path.createPathElement().setLocation( link ); } } else {   Definition def = (Definition) resource; File base = def.getBaseDir(); File deliverables = new File( base, "target/deliverables" );  String filename = def.getInfo().getFilename( name ); File file = new File( deliverables, name + "s/" + filename ); path.createPathElement().setLocation( file ); String alias = type.getAlias(); if( null != alias ) {     final String linkPath = def.getInfo().getLinkFilename( type ); final File link = new File( deliverables, name + "s/" + linkPath ); path.createPathElement().setLocation( link ); }
    private void addTypeToPath( final Project project, Resource resource, Path path, Type type )    {        String name = type.getName();        final File file = resource.getArtifact( project, name );        path.createPathElement().setLocation( file );        String alias = type.getAlias();        if( null != alias )        {            //            // include the alias resource in the path            //            final File link = resource.getArtifact( project, name, alias );            path.createPathElement().setLocation( link );        }    }