2009-12-07 02:09:57 -05:00
|
|
|
<!--
|
2009-12-31 12:36:46 -05:00
|
|
|
|
|
|
|
|
2009-12-07 02:09:57 -05:00
|
|
|
Copyright (C) 2009 Cloud Conscious, LLC. <info@cloudconscious.com>
|
|
|
|
|
|
|
|
====================================================================
|
2009-12-31 12:36:46 -05:00
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
2009-12-07 02:09:57 -05:00
|
|
|
====================================================================
|
2009-12-31 12:36:46 -05:00
|
|
|
|
2009-12-07 02:09:57 -05:00
|
|
|
-->
|
2009-12-23 01:26:56 -05:00
|
|
|
<project name="compute" default="list" basedir="." xmlns:artifact="urn:maven-artifact-ant">
|
|
|
|
<path id="maven-ant-tasks.classpath" path="maven-ant-tasks-2.1.0.jar" />
|
|
|
|
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"
|
|
|
|
classpathref="maven-ant-tasks.classpath"/>
|
|
|
|
|
2009-12-16 08:18:16 -05:00
|
|
|
<artifact:localRepository id="local.repository" path="${user.home}/.m2/repository" />
|
|
|
|
<artifact:remoteRepository id="jclouds-snapshot.repository" url="http://jclouds.rimuhosting.com/maven2/snapshots" />
|
|
|
|
|
|
|
|
<artifact:dependencies pathId="jclouds.classpath">
|
|
|
|
<dependency groupId="org.jclouds" artifactId="jclouds-ant-plugin" version="1.0-SNAPSHOT" />
|
|
|
|
<dependency groupId="org.jclouds" artifactId="jclouds-terremark" version="1.0-SNAPSHOT" />
|
|
|
|
<dependency groupId="org.jclouds" artifactId="jclouds-aws" version="1.0-SNAPSHOT" />
|
|
|
|
<dependency groupId="org.jclouds" artifactId="jclouds-hostingdotcom" version="1.0-SNAPSHOT" />
|
|
|
|
<dependency groupId="org.jclouds" artifactId="jclouds-rimuhosting" version="1.0-SNAPSHOT" />
|
|
|
|
<localRepository refid="local.repository" />
|
|
|
|
<remoteRepository refid="jclouds-snapshot.repository" />
|
|
|
|
</artifact:dependencies>
|
|
|
|
|
|
|
|
<typedef name="compute" classname="org.jclouds.tools.ant.ComputeTask" classpathref="jclouds.classpath" />
|
2009-12-10 18:12:57 -05:00
|
|
|
|
2009-12-16 08:18:16 -05:00
|
|
|
<property name="jclouds.compute.url" value="compute://${jclouds.compute.account}:${jclouds.compute.key}@${jclouds.compute.provider}" />
|
|
|
|
<property name="jclouds.compute.servername" value="testforjcloud2" />
|
2009-12-05 21:48:46 -05:00
|
|
|
|
2009-12-18 03:25:51 -05:00
|
|
|
<target name="list" description="list the identity of all servers" >
|
2009-12-16 08:18:16 -05:00
|
|
|
<compute action="list" provider="${jclouds.compute.url}" />
|
|
|
|
</target>
|
2009-12-05 21:48:46 -05:00
|
|
|
|
2009-12-18 03:25:51 -05:00
|
|
|
<target name="list-details" description="list the details of all servers" >
|
|
|
|
<compute action="list-details" provider="${jclouds.compute.url}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="destroy" description="destroy the server ${jclouds.compute.servername}" >
|
2009-12-16 08:18:16 -05:00
|
|
|
<compute action="destroy" provider="${jclouds.compute.url}">
|
|
|
|
<server name="${jclouds.compute.servername}" />
|
|
|
|
</compute>
|
|
|
|
</target>
|
2009-12-10 18:12:57 -05:00
|
|
|
|
2009-12-18 03:25:51 -05:00
|
|
|
<target name="get" description="get the server ${jclouds.compute.servername}" >
|
2009-12-16 08:18:16 -05:00
|
|
|
<compute action="get" provider="${jclouds.compute.url}">
|
|
|
|
<server name="${jclouds.compute.servername}" />
|
|
|
|
</compute>
|
|
|
|
</target>
|
2009-12-15 19:42:40 -05:00
|
|
|
|
2009-12-18 03:25:51 -05:00
|
|
|
<target name="create" description="create the server ${jclouds.compute.servername}" >
|
2009-12-16 08:18:16 -05:00
|
|
|
<compute action="create" provider="${jclouds.compute.url}">
|
|
|
|
<server name="${jclouds.compute.servername}" image="CENTOS_53" profile="SMALLEST" />
|
|
|
|
</compute>
|
|
|
|
</target>
|
2009-12-10 18:12:57 -05:00
|
|
|
|
2009-12-18 03:25:51 -05:00
|
|
|
</project>
|