mirror of https://github.com/apache/jclouds.git
60 lines
2.7 KiB
XML
60 lines
2.7 KiB
XML
<!--
|
|
|
|
|
|
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.
|
|
====================================================================
|
|
|
|
-->
|
|
<project name="ex6" default="list" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
|
|
<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-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" />
|
|
|
|
<property name="jclouds.compute.provider" value="compute://${jclouds.compute.account}:${jclouds.compute.key}@${jclouds.compute.provider}" />
|
|
<property name="jclouds.compute.servername" value="testforjcloud2" />
|
|
|
|
<target name="list">
|
|
<compute action="list" provider="${jclouds.compute.provider}" />
|
|
</target>
|
|
|
|
<target name="clean">
|
|
<compute action="destroy" provider="${jclouds.compute.provider}" >
|
|
<server name="${jclouds.compute.servername}"/>
|
|
</compute>
|
|
</target>
|
|
|
|
<target name="create">
|
|
<compute action="create" provider="${jclouds.compute.provider}" >
|
|
<server name="${jclouds.compute.servername}" image="CENTOS_53" profile="SMALLEST" />
|
|
</compute>
|
|
</target>
|
|
|
|
</project>
|