| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3ceb8d5 commit cefbbb3
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -184,9 +184,9 @@ | |||
| 184 | 184 | </path> | |
| 185 | 185 | ||
| 186 | 186 | ||
| 187 | - <target name="compile-plugins" description="Compile all of the jars corresponding to plugins" depends="compile-utils, compile-api, compile-core, compile-server, compile-hypervisors, compile-deployment-planners, compile-host-allocators, compile-network-elements, compile-user-authenticators "/> | ||
| 187 | + <target name="compile-plugins" description="Compile all of the jars corresponding to plugins" depends="compile-utils, compile-api, compile-core, compile-server, compile-hypervisors, compile-deployment-planners, compile-host-allocators, compile-network-elements, compile-user-authenticators, compile-storage-allocators "/> | ||
| 188 | 188 | ||
| 189 | - <target name="build-plugins" depends="build-hypervisors, build-network-elements, build-deployment-planners, build-host-allocators, build-user-authenticators" description="Builds all jar's for the plug-in's"/> | ||
| 189 | + <target name="build-plugins" depends="build-hypervisors, build-network-elements, build-deployment-planners, build-host-allocators, build-storage-allocators, build-user-authenticators" description="Builds all jar's for the plug-in's"/> | ||
| 190 | 190 | ||
| 191 | 191 | <target name="clean-plugins" description="Clean all of the generated files by the plugins"> | |
| 192 | 192 | <delete file="${build.log}" /> | |
@@ -234,6 +234,17 @@ | |||
| 234 | 234 | <target name="build-host-allocator-random" depends="compile-host-allocator-random" /> | |
| 235 | 235 | ||
| 236 | 236 | ||
| 237 | + <!-- ===================== Storage Allocators ===================== --> | ||
| 238 | + | ||
| 239 | + <target name="compile-storage-allocators" depends="compile-storage-allocator-random" description="Compile all storage allocators"/> | ||
| 240 | + <target name="build-storage-allocators" depends="build-storage-allocator-random" description="builds all storage allocators"/> | ||
| 241 | + | ||
| 242 | + <target name="compile-storage-allocator-random" depends="-init, compile-server" description="Compile "> | ||
| 243 | + <ant antfile="${base.dir}/plugins/storage-allocators/random/build.xml" target="build"/> | ||
| 244 | + </target> | ||
| 245 | + <target name="build-storage-allocator-random" depends="compile-storage-allocator-random" /> | ||
| 246 | + | ||
| 247 | + | ||
| 237 | 248 | <!-- ===================== User Authenticators ================== --> | |
| 238 | 249 | ||
| 239 | 250 | <target name="compile-user-authenticators" depends="compile-user-authenticator-ldap, compile-user-authenticator-md5, compile-user-authenticator-plaintext" description="Compile all user authenicators"/> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,10 @@ | |||
| 1 | + <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | + <classpath> | ||
| 3 | + <classpathentry kind="src" path="src"/> | ||
| 4 | + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
| 5 | + <classpathentry combineaccessrules="false" kind="src" path="/api"/> | ||
| 6 | + <classpathentry combineaccessrules="false" kind="src" path="/core"/> | ||
| 7 | + <classpathentry combineaccessrules="false" kind="src" path="/server"/> | ||
| 8 | + <classpathentry combineaccessrules="false" kind="src" path="/utils"/> | ||
| 9 | + <classpathentry kind="output" path="bin"/> | ||
| 10 | + </classpath> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,17 @@ | |||
| 1 | + <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | + <projectDescription> | ||
| 3 | + <name>random-storage-allocator</name> | ||
| 4 | + <comment></comment> | ||
| 5 | + <projects> | ||
| 6 | + </projects> | ||
| 7 | + <buildSpec> | ||
| 8 | + <buildCommand> | ||
| 9 | + <name>org.eclipse.jdt.core.javabuilder</name> | ||
| 10 | + <arguments> | ||
| 11 | + </arguments> | ||
| 12 | + </buildCommand> | ||
| 13 | + </buildSpec> | ||
| 14 | + <natures> | ||
| 15 | + <nature>org.eclipse.jdt.core.javanature</nature> | ||
| 16 | + </natures> | ||
| 17 | + </projectDescription> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,128 @@ | |||
| 1 | + <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | + <!-- | ||
| 3 | + Licensed to the Apache Software Foundation (ASF) under one or more | ||
| 4 | + contributor license agreements. See the NOTICE file distributed with | ||
| 5 | + this work for additional information regarding copyright ownership. | ||
| 6 | + The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| 7 | + (the "License"); you may not use this file except in compliance with | ||
| 8 | + the License. You may obtain a copy of the License at | ||
| 9 | + | ||
| 10 | + http://www.apache.org/licenses/LICENSE-2.0 | ||
| 11 | + | ||
| 12 | + Unless required by applicable law or agreed to in writing, software | ||
| 13 | + distributed under the License is distributed on an "AS IS" BASIS, | ||
| 14 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 15 | + See the License for the specific language governing permissions and | ||
| 16 | + limitations under the License. | ||
| 17 | + --> | ||
| 18 | + | ||
| 19 | + | ||
| 20 | + <project name="Cloud Stack Random Storage Allocator" default="help" basedir="."> | ||
| 21 | + <description> | ||
| 22 | + Cloud Stack ant build file | ||
| 23 | + </description> | ||
| 24 | + | ||
| 25 | + <dirname property="storage-allocator-random.base.dir" file="${ant.file.Cloud Stack Random Storage Allocator}/"/> | ||
| 26 | + <!-- This directory must be set --> | ||
| 27 | + <property name="top.dir" location="${storage-allocator-random.base.dir}/../../.."/> | ||
| 28 | + <property name="build.dir" location="${top.dir}/build"/> | ||
| 29 | + | ||
| 30 | + <echo message="build.dir=${build.dir}; top.dir=${top.dir}; storage-allocator-random.base.dir=${storage-allocator-random.base.dir}"/> | ||
| 31 | + | ||
| 32 | + <!-- Import anything that the user wants to set--> | ||
| 33 | + <!-- Import properties files and environment variables here --> | ||
| 34 | + | ||
| 35 | + <property environment="env" /> | ||
| 36 | + | ||
| 37 | + <condition property="build-cloud.properties.file" value="${build.dir}/override/build-cloud.properties" else="${build.dir}/build-cloud.properties"> | ||
| 38 | + <available file="${build.dir}/override/build-cloud.properties" /> | ||
| 39 | + </condition> | ||
| 40 | + | ||
| 41 | + <condition property="cloud.properties.file" value="${build.dir}/override/cloud.properties" else="${build.dir}/cloud.properties"> | ||
| 42 | + <available file="${build.dir}/override/cloud.properties" /> | ||
| 43 | + </condition> | ||
| 44 | + | ||
| 45 | + <condition property="override.file" value="${build.dir}/override/replace.properties" else="${build.dir}/replace.properties"> | ||
| 46 | + <available file="${build.dir}/override/replace.properties" /> | ||
| 47 | + </condition> | ||
| 48 | + | ||
| 49 | + <echo message="Using build parameters from ${build-cloud.properties.file}" /> | ||
| 50 | + <property file="${build-cloud.properties.file}" /> | ||
| 51 | + | ||
| 52 | + <echo message="Using company info from ${cloud.properties.file}" /> | ||
| 53 | + <property file="${cloud.properties.file}" /> | ||
| 54 | + | ||
| 55 | + <echo message="Using override file from ${override.file}" /> | ||
| 56 | + <property file="${override.file}" /> | ||
| 57 | + | ||
| 58 | + <property file="${build.dir}/build.number" /> | ||
| 59 | + | ||
| 60 | + <!-- In case these didn't get defined in the build-cloud.properties --> | ||
| 61 | + <property name="branding.name" value="default" /> | ||
| 62 | + <property name="deprecation" value="off" /> | ||
| 63 | + <property name="target.compat.version" value="1.6" /> | ||
| 64 | + <property name="source.compat.version" value="1.6" /> | ||
| 65 | + <property name="debug" value="true" /> | ||
| 66 | + <property name="debuglevel" value="lines,source"/> | ||
| 67 | + | ||
| 68 | + <echo message="target.dir=${target.dir}; top.dir=${top.dir}"/> | ||
| 69 | + <!-- directories for build and distribution --> | ||
| 70 | + <property name="target.dir" location="${top.dir}/target" /> | ||
| 71 | + <property name="classes.dir" location="${target.dir}/classes" /> | ||
| 72 | + <property name="jar.dir" location="${target.dir}/jar" /> | ||
| 73 | + <property name="dep.cache.dir" location="${target.dir}/dep-cache" /> | ||
| 74 | + <property name="build.log" location="${target.dir}/ant_verbose.txt" /> | ||
| 75 | + | ||
| 76 | + <property name="deps.dir" location="${top.dir}/deps" /> | ||
| 77 | + | ||
| 78 | + <property name="storage-allocator-random.jar" value="cloud-storage-allocator-random.jar" /> | ||
| 79 | + <property name="storage-allocator-random-scripts.dir" location="${storage-allocator-random.base.dir}/scripts" /> | ||
| 80 | + | ||
| 81 | + <import file="${build.dir}/build-common.xml"/> | ||
| 82 | + | ||
| 83 | + <echo message="target.dir=${target.dir}; top.dir=${top.dir}"/> | ||
| 84 | + | ||
| 85 | + <!-- This section needs to be replaced by some kind of dependency library--> | ||
| 86 | + <path id="deps.classpath"> | ||
| 87 | + <!--filelist files="${deps.classpath}" /--> | ||
| 88 | + <fileset dir="${deps.dir}" erroronmissingdir="false"> | ||
| 89 | + <include name="*.jar" /> | ||
| 90 | + </fileset> | ||
| 91 | + </path> | ||
| 92 | + | ||
| 93 | + <path id="cloudstack.classpath"> | ||
| 94 | + <fileset dir="${jar.dir}"> | ||
| 95 | + <include name="*.jar"/> | ||
| 96 | + </fileset> | ||
| 97 | + </path> | ||
| 98 | + | ||
| 99 | + <path id="storage-allocator-random.classpath"> | ||
| 100 | + <path refid="deps.classpath"/> | ||
| 101 | + <path refid="cloudstack.classpath"/> | ||
| 102 | + </path> | ||
| 103 | + | ||
| 104 | + <!-- This section needs to be replaced by some kind of dependency library--> | ||
| 105 | + | ||
| 106 | + | ||
| 107 | + <target name="init" description="Initialize binaries directory"> | ||
| 108 | + <mkdir dir="${classes.dir}/${storage-allocator-random.jar}"/> | ||
| 109 | + <mkdir dir="${jar.dir}"/> | ||
| 110 | + </target> | ||
| 111 | + | ||
| 112 | + <target name="compile-storage-allocator-random" depends="init" description="Compile storage-allocator-random"> | ||
| 113 | + <compile-java jar.name="${storage-allocator-random.jar}" top.dir="${storage-allocator-random.base.dir}" classpath="storage-allocator-random.classpath" /> | ||
| 114 | + </target> | ||
| 115 | + | ||
| 116 | + <target name="clean-storage-allocator-random"> | ||
| 117 | + <delete dir="${classes.dir}/${storage-allocator-random.jar}"/> | ||
| 118 | + </target> | ||
| 119 | + | ||
| 120 | + <target name="help" description="help"> | ||
| 121 | + <echo level="info" message="This is the build file for storage-allocator-random"/> | ||
| 122 | + <echo level="info" message="You can do a build by doing ant build or clean by ant clean" /> | ||
| 123 | + </target> | ||
| 124 | + | ||
| 125 | + <target name="build" depends="compile-storage-allocator-random"/> | ||
| 126 | + <target name="clean" depends="clean-storage-allocator-random"/> | ||
| 127 | + | ||
| 128 | + </project> | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments