aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.classpath1
-rw-r--r--build.xml36
2 files changed, 37 insertions, 0 deletions
diff --git a/.classpath b/.classpath
index f7d57bd5..adbcc311 100644
--- a/.classpath
+++ b/.classpath
@@ -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>
diff --git a/build.xml b/build.xml
index c2933032..ba696723 100644
--- a/build.xml
+++ b/build.xml
@@ -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>