diff options
-rw-r--r-- | .classpath | 1 | ||||
-rw-r--r-- | build.xml | 36 |
2 files changed, 37 insertions, 0 deletions
@@ -17,5 +17,6 @@ <classpathentry kind="lib" path="deps/lombok/org.eclipse.osgi_3.5.0.v20090520.jar"/> <classpathentry kind="lib" path="deps/lombok/org.eclipse.equinox.common_3.5.0.v20090520-1800.jar"/> <classpathentry kind="lib" path="deps/lombok/spi-0.2.3-pre.jar"/> + <classpathentry kind="lib" path="deps/tools.jar"/> <classpathentry kind="output" path="bin"/> </classpath> @@ -223,4 +223,40 @@ </jar> <copy file="dist/lombok-${lombok.version}.jar" tofile="dist/lombok.jar" /> </target> + + + <property name="credentialsFile" value="google.properties" /> + + <target name="-credentials"> + <available property="hasCredentialsFile" file="${credentialsFile}"/> + </target> + + <target name="-checkCredentialsFile" depends="-credentials" unless="hasCredentialsFile"> + <echo file="${credentialsFile}">#username=[your google account name without @gmail.com] +#password=[your googlecode password, is NOT your gmail password]</echo> + <fail message="fill in ${credentialsFile} to provide your credentials"/> + </target> + + <target name="publish" depends="-checkCredentialsFile, dist"> + <taskdef classname="net.bluecow.googlecode.ant.GoogleCodeUploadTask" classpath="deps/website/ant-googlecode-0.0.2.jar" name="gcupload"/> + <property file="${credentialsFile}" prefix="google" /> + <gcupload + username="${google.username}" + password="${google.password}" + projectname="projectlombok" + filename="dist/lombok.jar" + targetfilename="lombok-${lombok.version}.jar" + summary="Version ${lombok.version}" + labels="" + verbose="true" /> + <gcupload + username="${google.username}" + password="${google.password}" + projectname="projectlombok" + filename="dist/lombok.jar" + targetfilename="lombok.jar" + summary="Version ${lombok.version} - The everything jar - doubleclick it to install, or just include it in your projects." + labels="Featured" + verbose="true" /> + </target> </project> |