public void updateArchetypeConfiguration( ArchetypeConfiguration archetypeConfiguration, ArchetypeDefinition archetypeDefinition ) { archetypeConfiguration.setGroupId( archetypeDefinition.getGroupId() ); archetypeConfiguration.setArtifactId( archetypeDefinition.getArtifactId() ); archetypeConfiguration.setVersion( archetypeDefinition.getVersion() ); }
private void addRequiredProperty( ArchetypeConfiguration configuration, Properties properties, String key, String defaultValue, boolean initPropertyWithDefault ) { if ( !configuration.isConfigured( key ) && configuration.getDefaultValue( key ) == null ) { addOldRequiredProperty( configuration, properties, key, defaultValue, initPropertyWithDefault ); } }
public String prompt( String message ) throws PrompterException { writePrompt( message ); return readLine(); }
public void reset() { setGroupId( null ); setArtifactId( null ); setVersion( null ); }
public boolean isDefined() { return isPartiallyDefined() && isVersionDefined(); }
public boolean isPartiallyDefined() { return isGroupDefined() && isArtifactDefined(); }
public String getArchetypeVersion(String defaultValue) throws PrompterException { return getValue(Constants.ARCHETYPE_VERSION, defaultValue); }
@SuppressWarnings( "rawtypes" ) public String prompt( String message, List possibleValues ) throws PrompterException { return prompt( message, possibleValues, null ); }
private void writePrompt( String message ) throws PrompterException { showMessage( message + ": " ); }
public void updateArchetypeConfiguration( ArchetypeConfiguration archetypeConfiguration, ArchetypeDefinition archetypeDefinition ) { archetypeConfiguration.setGroupId( archetypeDefinition.getGroupId() ); archetypeConfiguration.setArtifactId( archetypeDefinition.getArtifactId() ); archetypeConfiguration.setVersion( archetypeDefinition.getVersion() ); }
private void addRequiredProperty( ArchetypeConfiguration configuration, Properties properties, String key, String defaultValue, boolean initPropertyWithDefault ) { if ( !configuration.isConfigured( key ) && configuration.getDefaultValue( key ) == null ) { addOldRequiredProperty( configuration, properties, key, defaultValue, initPropertyWithDefault ); } }
public void reset() { setGroupId( null ); setArtifactId( null ); setVersion( null ); }
public String prompt( String message ) throws PrompterException { writePrompt( message ); return readLine(); }
public boolean isDefined() { return isPartiallyDefined() && isVersionDefined(); }
public boolean isPartiallyDefined() { return isGroupDefined() && isArtifactDefined(); }
public String getPackage(String defaultValue) throws PrompterException { return getValue(Constants.PACKAGE, defaultValue); }
@SuppressWarnings( "rawtypes" ) public String prompt( String message, List possibleValues ) throws PrompterException { return prompt( message, possibleValues, null ); }
private void writePrompt( String message ) throws PrompterException { showMessage( message + ": " ); }
public String getVersion(String defaultValue) throws PrompterException { return getValue(Constants.VERSION, defaultValue); }
public String getArchetypeArtifactId(String defaultValue) throws PrompterException { return getValue(Constants.ARCHETYPE_ARTIFACT_ID, defaultValue); }