2009-12-07 02:09:57 -05:00
|
|
|
<!--
|
|
|
|
Copyright (C) 2009 Cloud Conscious, LLC. <info@cloudconscious.com>
|
|
|
|
|
|
|
|
====================================================================
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
or more contributor license agreements. See the NOTICE file
|
|
|
|
distributed with this work for additional information
|
|
|
|
regarding copyright ownership. The ASF licenses this file
|
|
|
|
to you 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-15 19:42:40 -05:00
|
|
|
<project name="compute" default="list" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
|
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-16 08:18:16 -05:00
|
|
|
<target name="list">
|
|
|
|
<compute action="list" provider="${jclouds.compute.url}" />
|
|
|
|
</target>
|
2009-12-05 21:48:46 -05:00
|
|
|
|
2009-12-16 08:18:16 -05:00
|
|
|
<target name="clean">
|
|
|
|
<compute action="destroy" provider="${jclouds.compute.url}">
|
|
|
|
<server name="${jclouds.compute.servername}" />
|
|
|
|
</compute>
|
|
|
|
</target>
|
2009-12-10 18:12:57 -05:00
|
|
|
|
2009-12-16 08:18:16 -05:00
|
|
|
<target name="get">
|
|
|
|
<compute action="get" provider="${jclouds.compute.url}">
|
|
|
|
<server name="${jclouds.compute.servername}" />
|
|
|
|
</compute>
|
|
|
|
</target>
|
2009-12-15 19:42:40 -05:00
|
|
|
|
2009-12-16 08:18:16 -05:00
|
|
|
<target name="create">
|
|
|
|
<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-16 08:18:16 -05:00
|
|
|
</project>
|