public ArchetypeDefinition createArchetypeDefinition( Properties properties ) { ArchetypeDefinition definition = new ArchetypeDefinition(); definition.setGroupId( properties.getProperty( Constants.ARCHETYPE_GROUP_ID ) ); definition.setArtifactId( properties.getProperty( Constants.ARCHETYPE_ARTIFACT_ID ) ); definition.setVersion( properties.getProperty( Constants.ARCHETYPE_VERSION ) ); definition.setRepository( properties.getProperty( Constants.ARCHETYPE_REPOSITORY ) ); definition.setUrl( properties.getProperty( Constants.ARCHETYPE_URL ) ); definition.setDescription( properties.getProperty( Constants.ARCHETYPE_DESCRIPTION ) ); return definition; }
public void reset() { setGroupId( null ); setArtifactId( null ); setVersion( null ); }
public void reset() { setGroupId( null ); setArtifactId( null ); setVersion( null ); }
public ArchetypeDefinition createArchetypeDefinition( Properties properties ) { ArchetypeDefinition definition = new ArchetypeDefinition(); definition.setGroupId( properties.getProperty( Constants.ARCHETYPE_GROUP_ID ) ); definition.setArtifactId( properties.getProperty( Constants.ARCHETYPE_ARTIFACT_ID ) ); definition.setVersion( properties.getProperty( Constants.ARCHETYPE_VERSION ) ); definition.setRepository( properties.getProperty( Constants.ARCHETYPE_REPOSITORY ) ); definition.setUrl( properties.getProperty( Constants.ARCHETYPE_URL ) ); definition.setDescription( properties.getProperty( Constants.ARCHETYPE_DESCRIPTION ) ); return definition; }
public ArchetypeDefinition( ArchetypeGenerationRequest request ) { setGroupId( request.getArchetypeGroupId() ); setArtifactId( request.getArchetypeArtifactId() ); setVersion( request.getArchetypeVersion() ); }
public ArchetypeDefinition( ArchetypeGenerationRequest request ) { setGroupId( request.getArchetypeGroupId() ); setArtifactId( request.getArchetypeArtifactId() ); setVersion( request.getArchetypeVersion() ); }
private void updateDefinition( ArchetypeDefinition definition, Archetype archetype ) { definition.setGroupId( archetype.getGroupId() ); definition.setArtifactId( archetype.getArtifactId() ); definition.setVersion( archetype.getVersion() ); definition.setName( archetype.getArtifactId() ); updateRepository( definition, archetype ); definition.setGoals( StringUtils.join( archetype.getGoals().iterator(), "," ) ); }
private void updateDefinition( ArchetypeDefinition definition, Archetype archetype ) { definition.setGroupId( archetype.getGroupId() ); definition.setArtifactId( archetype.getArtifactId() ); definition.setVersion( archetype.getVersion() ); definition.setName( archetype.getArtifactId() ); updateRepository( definition, archetype ); definition.setGoals( StringUtils.join( archetype.getGoals().iterator(), "," ) ); }
definition.setGroupId( null ); definition.setArtifactId( null ); definition.setGroupId( DEFAULT_ARCHETYPE_GROUPID );
definition.setGroupId( null ); definition.setArtifactId( null ); definition.setGroupId( DEFAULT_ARCHETYPE_GROUPID );
archetypeDefinition.setGroupId( archetypeCreationQueryer.getArchetypeGroupId( project.getGroupId() ) );
archetypeDefinition.setGroupId( archetypeCreationQueryer.getArchetypeGroupId( project.getGroupId() ) );