Tweaked the archetype a bit (symptoms of gold-plating ;-)).

git-svn-id: http://jclouds.googlecode.com/svn/trunk@2272 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
sharedocs1@gmail.com 2009-11-12 22:48:59 +00:00
parent aa1dd2009b
commit 1c98852769
5 changed files with 6 additions and 7 deletions

View File

@ -8,8 +8,7 @@
<defaultValue>Adrian Cole</defaultValue>
</requiredProperty>
<requiredProperty key="clientName" />
<requiredProperty key="artifactId" />
<requiredProperty key="endpoint" />
<requiredProperty key="clientEndpoint" />
<requiredProperty key="clientUser" />
<requiredProperty key="clientPassword" />
</requiredProperties>

View File

@ -36,7 +36,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<artifactId>jclouds-${artifactId}</artifactId>
<name>jclouds ${clientName} core</name>
<packaging>jar</packaging>
<description>jclouds components to access ${clientName}</description>

View File

@ -46,7 +46,7 @@ public class ${clientName}PropertiesBuilder extends HttpPropertiesBuilder {
@Override
protected Properties defaultProperties() {
Properties properties = super.defaultProperties();
properties.setProperty(PROPERTY_${ucaseClientName}_ENDPOINT, "${endpoint}");
properties.setProperty(PROPERTY_${ucaseClientName}_ENDPOINT, "${clientEndpoint}");
return properties;
}

View File

@ -91,7 +91,7 @@ public class ${clientName}ClientTest extends RestClientTest<${clientName}Client>
@Override
protected void configure() {
bind(URI.class).annotatedWith(${clientName}.class).toInstance(
URI.create("${endpoint}"));
URI.create("${clientEndpoint}"));
bind(Logger.LoggerFactory.class).toInstance(new LoggerFactory() {
public Logger getLogger(String category) {
return Logger.NULL;

View File

@ -57,7 +57,7 @@ public class ${clientName}ContextBuilderTest {
public void testNewBuilder() {
${clientName}ContextBuilder builder = newBuilder();
assertEquals(builder.getProperties().getProperty(${clientName}Constants.PROPERTY_${ucaseClientName}_ENDPOINT),
"${endpoint}");
"${clientEndpoint}");
assertEquals(builder.getProperties().getProperty(${clientName}Constants.PROPERTY_${ucaseClientName}_USER),
"user");
assertEquals(builder.getProperties().getProperty(${clientName}Constants.PROPERTY_${ucaseClientName}_PASSWORD),
@ -68,7 +68,7 @@ public class ${clientName}ContextBuilderTest {
RestContext<${clientName}Client> context = newBuilder().buildContext();
assertEquals(context.getClass(), RestContextImpl.class);
assertEquals(context.getAccount(), "user");
assertEquals(context.getEndPoint(), URI.create("${endpoint}"));
assertEquals(context.getEndPoint(), URI.create("${clientEndpoint}"));
}
public void testBuildInjector() {