Inital commit

This commit is contained in:
Tilman
2011-10-26 09:44:02 +02:00
commit 5971f4b417
1813 changed files with 737837 additions and 0 deletions
+76
View File
@@ -0,0 +1,76 @@
<project name="analytics" default="sample.analytics.build" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.analytics}"/>
<import file="${build_dir}/core.xml"/>
<!-- ===================================================================== -->
<!-- Build GData Analytics library. -->
<!-- ===================================================================== -->
<property name="gdata-analytics.jar"
value="${build.jars}/gdata-analytics-${analytics.spec.version}.jar"/>
<property name="sample.analytics.basedir" value="${build}/sample/analytics"/>
<property name="sample.analytics.src.home" value="${sample.analytics.basedir}"/>
<property name="sample.analytics.build.classes" value="${sample.analytics.basedir}/classes"/>
<property name="sample.analytics.build.lib" value="${sample.analytics.basedir}/lib"/>
<property name="sample.analytics.jar" value="${sample.analytics.build.lib}/AnalyticsClient.jar"/>
<property name="sample.analytics.main" value="sample.analytics.AnalyticsClient"/>
<target name="sample.analytics.clean"
description="Delete old build and dist directories">
<delete dir="${sample.analytics.build.classes}"/>
</target>
<target name="sample.analytics.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="analytics"/>
<param name="template.service.version" value="${analytics.spec.version}"/>
</antcall>
</target>
<path id="sample.analytics.compile.classpath">
<path refid="build.service.core.classpath"/>
<pathelement location="${gdata-analytics.jar}"/>
<pathelement location="${sample-util.jar}"/>
</path>
<!-- samples build -->
<target name="sample.analytics.build"
depends="sample.analytics.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<mkdir dir="${sample.analytics.build.lib}"/>
<mkdir dir="${sample.analytics.build.classes}"/>
<javac srcdir="${sample.analytics.src.home}"
destdir="${sample.analytics.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.analytics.compile.classpath"/>
</javac>
<jar jarfile="${sample.analytics.jar}"
basedir="${sample.analytics.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.analytics.main}"/>
</manifest>
</jar>
</target>
<!-- samples run -->
<target name="sample.analytics.run"
depends="sample.analytics.build"
description="Runs the analytics sample">
<java fork="true" classname="${sample.analytics.main}">
<arg line="--username ${sample.credentials.username} --password ${sample.credentials.password}"/>
<classpath>
<path refid="sample.analytics.compile.classpath"/>
<path location="${sample.analytics.jar}"/>
</classpath>
</java>
</target>
</project>
@@ -0,0 +1,139 @@
<project name="appsforyourdomain" default="build.appsforyourdomain" basedir=".">
<!-- Path containing appsforyourdomain.xml -->
<dirname property="build_dir" file="${ant.file.appsforyourdomain}"/>
<import file="${build_dir}/core.xml"/>
<import file="${build_dir}/calendar.xml"/>
<property name="gdata-appsforyourdomain.jar"
value="${build.jars}/gdata-appsforyourdomain-${appsforyourdomain.spec.version}.jar"/>
<!-- ===================================================================== -->
<!-- Build the GData AppsForYourDomain samples. -->
<!-- ===================================================================== -->
<!-- samples build Properties -->
<property name="sample.appsforyourdomain.basedir"
value="${build}/sample/appsforyourdomain"/>
<property name="sample.appsforyourdomain.src.home"
value="${sample.appsforyourdomain.basedir}"/>
<property name="sample.appsforyourdomain.build.classes"
value="${sample.appsforyourdomain.basedir}/classes"/>
<property name="sample.appsforyourdomain.build.lib"
value="${sample.appsforyourdomain.basedir}/lib"/>
<property name="sample.appsforyourdomain.jar"
value="${sample.appsforyourdomain.build.lib}/AppsForYourDomainClient.jar"/>
<property name="sample.appsforyourdomain.main"
value="sample.appsforyourdomain.AppsForYourDomainClient"/>
<property name="sample.appsforyourdomain.migration.main"
value="sample.appsforyourdomain.migration.AppsForYourDomainMigrationClient"/>
<property name="sample.appsforyourdomain.gmailsettings.AppsForYourDomainGmailFilterClient"
value="sample.appsforyourdomain.gmailsettings.AppsForYourDomainGmailFilterClient"/>
<property name="sample.appsforyourdomain.gmailsettings.GmailSettingsClient"
value="sample.appsforyourdomain.gmailsettings.GmailSettingsClient"/>
<property name="sample.appsforyourdomain.gmailsettings.gui.GmailSettingsClient"
value="sample.appsforyourdomain.gmailsettings.gui.GmailSettingsClient"/>
<!-- dependency check -->
<target name="sample.appsforyourdomain.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="appsforyourdomain"/>
<param name="template.service.version" value="${appsforyourdomain.spec.version}"/>
</antcall>
</target>
<!-- samples build -->
<path id="sample.appsforyourdomain.compile.classpath">
<path refid="build.service.media.classpath"/>
<pathelement location="${gdata-appsforyourdomain.jar}"/>
<pathelement location="${sample-util.jar}"/>
</path>
<target name="sample.appsforyourdomain.build"
depends="sample.appsforyourdomain.dependencies,core.sample.core.util.build">
<mkdir dir="${sample.appsforyourdomain.build.lib}"/>
<mkdir dir="${sample.appsforyourdomain.build.classes}"/>
<javac srcdir="${sample.appsforyourdomain.src.home}"
destdir="${sample.appsforyourdomain.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.appsforyourdomain.compile.classpath"/>
</javac>
<jar jarfile="${sample.appsforyourdomain.jar}"
basedir="${sample.appsforyourdomain.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.appsforyourdomain.main}"/>
</manifest>
</jar>
</target>
<target name="sample.appsforyourdomain.clean">
<delete dir="${sample.appsforyourdomain.build.classes}"/>
</target>
<!-- samples run -->
<target name="sample.appsforyourdomain.run"
depends="sample.appsforyourdomain.build"
description="Runs the AppsForYourDomain sample">
<java fork="true" classname="${sample.appsforyourdomain.main}">
<arg line="--admin_email ${sample.appsforyourdomain.admin_email} --admin_password ${sample.appsforyourdomain.admin_password} --domain ${sample.appsforyourdomain.domain}"/>
<classpath>
<path refid="sample.appsforyourdomain.compile.classpath"/>
<path location="${sample.appsforyourdomain.jar}"/>
</classpath>
</java>
</target>
<target name="sample.appsforyourdomain.migration.run"
depends="sample.appsforyourdomain.build"
description="Runs the AppsForYourDomain Migration sample">
<java fork="true" classname="${sample.appsforyourdomain.migration.main}">
<arg line="--username ${sample.appsforyourdomain.migration.username} --password ${sample.appsforyourdomain.migration.password} --domain ${sample.appsforyourdomain.migration.domain}"/>
<classpath>
<path refid="sample.appsforyourdomain.compile.classpath"/>
<path location="${sample.appsforyourdomain.jar}"/>
</classpath>
</java>
</target>
<target name="sample.appsforyourdomain.gmailsettings.filter.run"
depends="sample.appsforyourdomain.build"
description="Runs the AppsForYourDomain Gmail filter sample">
<java fork="true" classname="${sample.appsforyourdomain.gmailsettings.AppsForYourDomainGmailFilterClient}">
<arg line="--username ${sample.appsforyourdomain.admin_email} --password ${sample.appsforyourdomain.admin_password} --domain ${sample.appsforyourdomain.domain} --destination_user ${sample.appsforyourdomain.user_email}"/>
<classpath>
<path refid="sample.appsforyourdomain.compile.classpath"/>
<path location="${sample.appsforyourdomain.jar}"/>
</classpath>
</java>
</target>
<target name="sample.appsforyourdomain.gmailsettings.run"
depends="sample.appsforyourdomain.build"
description="Runs the AppsForYourDomain Gmail settings sample">
<java fork="true" classname="${sample.appsforyourdomain.gmailsettings.GmailSettingsClient}">
<arg line="--username ${sample.appsforyourdomain.admin_email} --password ${sample.appsforyourdomain.admin_password} --domain ${sample.appsforyourdomain.domain} --destination_user ${sample.appsforyourdomain.user_email} --setting pop"/>
<classpath>
<path refid="sample.appsforyourdomain.compile.classpath"/>
<path location="${sample.appsforyourdomain.jar}"/>
</classpath>
</java>
</target>
<target name="sample.appsforyourdomain.gmailsettings.gui.run"
depends="sample.appsforyourdomain.build"
description="Runs the AppsForYourDomain Gmail filter GUI sample">
<java fork="true" classname="${sample.appsforyourdomain.gmailsettings.gui.GmailSettingsClient}">
<classpath>
<path refid="sample.appsforyourdomain.compile.classpath"/>
<path location="${sample.appsforyourdomain.jar}"/>
</classpath>
</java>
</target>
</project>
+141
View File
@@ -0,0 +1,141 @@
<!-- ==================================================================== -->
<!-- AuthSub Sample Targets -->
<!-- ==================================================================== -->
<project name="authsub" default="sample.authsub.build" basedir=".">
<!-- Path containing docs.xml -->
<dirname property="build_dir" file="${ant.file.authsub}"/>
<import file="${build_dir}/core.xml"/>
<import file="${build_dir}/calendar.xml"/>
<import file="${build_dir}/codesearch.xml"/>
<import file="${build_dir}/spreadsheet.xml"/>
<!-- ==================== AuthSub property names ========================= -->
<property name="sample.authsub.app.name" value="authsub_sample"/>
<property name="sample.authsub.app.path" value="/${sample.authsub.app.name}"/>
<property name="sample.authsub.app.version" value="1.0"/>
<property name="sample.authsub.basedir" value="${build}/sample/authsub"/>
<property name="sample.authsub.build.home" value="${sample.authsub.basedir}/build"/>
<property name="sample.authsub.dist.home" value="${sample.authsub.basedir}/dist"/>
<property name="sample.authsub.src.home" value="${sample.authsub.basedir}/src"/>
<property name="sample.authsub.web.home" value="${sample.authsub.basedir}/web"/>
<!-- ==================== AuthSub Clean Target ========================== -->
<target name="sample.authsub.clean"
description="Delete old build and dist directories">
<delete dir="${sample.authsub.build.home}"/>
</target>
<!-- ==================== Compilation class path ========================= -->
<path id="sample.authsub.compile.classpath">
<!-- Include all JAR files that will be included in /WEB-INF/lib -->
<path refid="build.service.core.classpath"/>
<pathelement location="${servlet.jar}"/>
<pathelement location="${gdata-calendar.jar}"/>
<pathelement location="${gdata-codesearch.jar}"/>
<pathelement location="${gdata-spreadsheet.jar}"/>
</path>
<!-- ==================== Compile Target ================================ -->
<!--
The "compile" target transforms source files (from your "src" directory)
into object files in the appropriate location in the build directory.
This example assumes that you will be including your classes in an
unpacked directory hierarchy under "/WEB-INF/classes".
-->
<target name="sample.authsub.compile" depends="sample.authsub.prepare,require.servlet-api"
description="Compile Java sources">
<!-- Compile Java classes as necessary -->
<mkdir dir="${sample.authsub.build.home}/WEB-INF/classes"/>
<javac srcdir="${sample.authsub.src.home}"
destdir="${sample.authsub.build.home}/WEB-INF/classes"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.authsub.compile.classpath"/>
</javac>
<!-- Copy application resources -->
<copy todir="${sample.authsub.build.home}/WEB-INF/classes">
<fileset dir="${sample.authsub.src.home}" excludes="**/*.java"/>
</copy>
</target>
<!-- ==================== AuthSub Build Target ============================ -->
<target name="sample.authsub.build"
depends="sample.authsub.compile,sample.core.dependencies"
description="Create binary distribution">
<!-- Copy dependency resources to create a single deploy jar -->
<unjar src="${gdata-calendar.jar}"
dest="${sample.authsub.build.home}/WEB-INF/classes"/>
<unjar src="${gdata-core.jar}"
dest="${sample.authsub.build.home}/WEB-INF/classes"/>
<unjar src="${gdata-client-meta.jar}"
dest="${sample.authsub.build.home}/WEB-INF/classes"/>
<unjar src="${gdata-client.jar}"
dest="${sample.authsub.build.home}/WEB-INF/classes"/>
<unjar src="${google-collect.jar}"
dest="${sample.authsub.build.home}/WEB-INF/classes"/>
<unjar src="${google-jsr305.jar}"
dest="${sample.authsub.build.home}/WEB-INF/classes"/>
<!-- Create dist directory -->
<mkdir dir="${sample.authsub.dist.home}"/>
<!-- Create application JAR file -->
<jar jarfile="${sample.authsub.dist.home}/${sample.authsub.app.name}.war"
basedir="${sample.authsub.build.home}"/>
</target>
<!-- ==================== AuthSub Prepare Target ========================= -->
<!--
The "prepare" target is used to create the "build" destination directory,
and copy the static contents of your web application to it. If you need
to copy static files from external dependencies, you can customize the
contents of this task.
-->
<target name="sample.authsub.prepare">
<!-- Create build directories as needed -->
<mkdir dir="${sample.authsub.build.home}"/>
<mkdir dir="${sample.authsub.build.home}/WEB-INF"/>
<mkdir dir="${sample.authsub.build.home}/WEB-INF/classes"/>
<!-- Copy static content of this web application -->
<copy todir="${sample.authsub.build.home}">
<fileset dir="${sample.authsub.web.home}"/>
</copy>
<mkdir dir="${sample.authsub.build.home}/WEB-INF/lib"/>
</target>
</project>
+69
View File
@@ -0,0 +1,69 @@
<project name="blogger" default="sample.blogger.build" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.blogger}"/>
<import file="${build_dir}/core.xml"/>
<import file="${build_dir}/blogger.xml"/>
<property name="gdata-blogger.jar"
value="${build.jars}/gdata-blogger-${blogger.spec.version}.jar"/>
<!-- ===================================================================== -->
<!-- Build GData Blogger samples. -->
<!-- ===================================================================== -->
<!-- build Properties -->
<property name="sample.blogger.basedir" value="${build}/sample/blogger"/>
<property name="sample.blogger.src.home" value="${sample.blogger.basedir}"/>
<property name="sample.blogger.build.classes" value="${sample.blogger.basedir}/classes"/>
<property name="sample.blogger.build.lib" value="${sample.blogger.basedir}/lib"/>
<property name="sample.blogger.jar" value="${sample.blogger.build.lib}/BloggerClient.jar"/>
<property name="sample.blogger.main" value="sample.blogger.BloggerClient"/>
<path id="sample.blogger.compile.classpath">
<path refid="build.service.core.classpath"/>
<path location="${gdata-blogger.jar}"/>
<path location="${sample-util.jar}"/>
</path>
<target name="sample.blogger.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="blogger"/>
<param name="template.service.version" value="${blogger.spec.version}"/>
</antcall>
</target>
<target name="sample.blogger.build" depends="sample.blogger.dependencies">
<mkdir dir="${sample.blogger.build.lib}"/>
<mkdir dir="${sample.blogger.build.classes}"/>
<javac srcdir="${sample.blogger.src.home}"
destdir="${sample.blogger.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.blogger.compile.classpath"/>
</javac>
<jar jarfile="${sample.blogger.jar}"
basedir="${sample.blogger.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.blogger.main}"/>
</manifest>
</jar>
</target>
<target name="sample.blogger.clean"
description="Delete old build and dist directories">
<delete dir="${sample.blogger.build.classes}"/>
</target>
<target name="sample.blogger.run" depends="sample.blogger.build">
<java fork="true" classname="${sample.blogger.main}">
<arg line="--username ${sample.credentials.username} --password ${sample.credentials.password}"/>
<classpath>
<path refid="sample.blogger.compile.classpath"/>
<path location="${sample-util.jar}"/>
<path location="${sample.blogger.jar}"/>
</classpath>
</java>
</target>
</project>
+76
View File
@@ -0,0 +1,76 @@
<project name="books" default="sample.books.build" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.books}"/>
<import file="${build_dir}/core.xml"/>
<!-- ===================================================================== -->
<!-- Build GData Books library. -->
<!-- ===================================================================== -->
<property name="gdata-books.jar"
value="${build.jars}/gdata-books-${books.spec.version}.jar"/>
<property name="sample.books.basedir" value="${build}/sample/books"/>
<property name="sample.books.src.home" value="${sample.books.basedir}"/>
<property name="sample.books.build.classes" value="${sample.books.basedir}/classes"/>
<property name="sample.books.build.lib" value="${sample.books.basedir}/lib"/>
<property name="sample.books.jar" value="${sample.books.build.lib}/BooksClient.jar"/>
<property name="sample.books.main" value="sample.books.BooksClient"/>
<target name="sample.books.clean"
description="Delete old build and dist directories">
<delete dir="${sample.books.build.classes}"/>
</target>
<target name="sample.books.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="books"/>
<param name="template.service.version" value="${books.spec.version}"/>
</antcall>
</target>
<path id="sample.books.compile.classpath">
<path refid="build.service.core.classpath"/>
<pathelement location="${gdata-books.jar}"/>
<pathelement location="${sample-util.jar}"/>
</path>
<!-- samples build -->
<target name="sample.books.build"
depends="sample.books.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<mkdir dir="${sample.books.build.lib}"/>
<mkdir dir="${sample.books.build.classes}"/>
<javac srcdir="${sample.books.src.home}"
destdir="${sample.books.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.books.compile.classpath"/>
</javac>
<jar jarfile="${sample.books.jar}"
basedir="${sample.books.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.books.main}"/>
</manifest>
</jar>
</target>
<!-- samples run -->
<target name="sample.books.run"
depends="sample.books.build"
description="Runs the books sample">
<java fork="true" classname="${sample.books.main}">
<arg line="--username ${sample.credentials.username} --password ${sample.credentials.password}"/>
<classpath>
<path refid="sample.books.compile.classpath"/>
<path location="${sample.books.jar}"/>
</classpath>
</java>
</target>
</project>
+69
View File
@@ -0,0 +1,69 @@
# Include debugging information in built library files. Possible values "on" or "off"
javac.debug=true
javac.debuglevel=lines,vars,source
# Points to a external library dependancies
servlet.jar=third_party/servlet-api-2.4.jar
mail.jar=third_party/mail.jar
activation.jar=third_party/activation.jar
google-jsr305.jar=deps/jsr305.jar
google-collect.jar=deps/google-collect-1.0-rc1.jar
# Authentication credentials to use for the samples
# EDIT-THIS: Add your own Google credentials to run the samples.
sample.credentials.username=username@gmail.com
sample.credentials.password=password
# Autehntication credentials for youtube
# EDIT-THIS: Add your own youtube account credentials
sample.youtube.username=username
sample.youtube.password=password
sample.youtube.key=developer_key
# Parameters passed to the appsforyourdomain sample
# EDIT-THIS: Specify data related to your domain
sample.appsforyourdomain.admin_email=admin@domain_name
sample.appsforyourdomain.admin_password=password
sample.appsforyourdomain.domain=domain
sample.appsforyourdomain.user_email=user@domain_name
# Additional Parameters pass to appsforyourdomain migration sample
# EDIT-THIS: Specify data related to e-mail migration for your domain
sample.appsforyourdomain.migration.username=admin
sample.appsforyourdomain.migration.password=password
sample.appsforyourdomain.migration.domain=domain
# Parameters passed to the codesearch sample
sample.codesearch.querystring=printf
# Parameters passed to the tester sample. Default: Google Photos
# EDIT-THIS: Change serviceName and feedUrl if need to try a different service.
sample.tester.serviceName=lh2
sample.tester.appName=genericTester
sample.tester.feedUrl=http://picasaweb.google.com/data/feed/api/user/default
# Parameters passed to the Google Base samples
sample.gbase.cmdline.queryexample.querystring="Digital Camera"
# Parameters passed to the Project Hosting samples
sample.projecthosting.projectname=example
# Parameters passed to the Sidewiki samples
sample.sidewiki.webpageurl="http://www.google.com/"
# Parameters passed to the Sites samples
sample.sites.webspacename="example"
sample.sites.domain="example.com"
# Parameters passed to the SpreadSheet samples
# EDIT-THIS: If running ImportClient, provide the name of file to import.
sample.spreadsheet.importclient.filename=/tmp/spreadsheet.txt
# EDIT-THIS: If running ImportClient, provide name of SpreadSheet to import into.
sample.spreadsheet.importclient.spreadsheet=Sample
# EDIT-THIS: If running ImportClient, provide name of WorkSheet to import into.
sample.spreadsheet.importclient.worksheet=Sheet1
# Parameters passed to the Contacts samples
# EDIT-THIS: Specify the projection.
sample.contacts.projection=full
+159
View File
@@ -0,0 +1,159 @@
<project name="calendar" default="build.calendar" basedir=".">
<!-- Path containing calendar.xml -->
<dirname property="build_dir" file="${ant.file.calendar}"/>
<import file="${build_dir}/core.xml"/>
<property name="gdata-calendar.jar"
value="${build.jars}/gdata-calendar-${calendar.spec.version}.jar"/>
<!-- ===================================================================== -->
<!-- Build the GData Calendar samples. -->
<!-- ===================================================================== -->
<!-- samples build Properties -->
<property name="sample.calendar.basedir" value="${build}/sample/calendar"/>
<property name="sample.calendar.src.home" value="${sample.calendar.basedir}"/>
<property name="sample.calendar.build.classes" value="${sample.calendar.basedir}/classes"/>
<property name="sample.calendar.build.lib" value="${sample.calendar.basedir}/lib"/>
<property name="sample.calendar.eventfeed.jar" value="${sample.calendar.build.lib}/EventFeedDemo.jar"/>
<property name="sample.calendar.eventfeed.main" value="sample.calendar.EventFeedDemo"/>
<property name="sample.calendar.eventpartial.jar" value="${sample.calendar.build.lib}/EventFeedPartialDemo.jar"/>
<property name="sample.calendar.eventpartial.main" value="sample.calendar.EventFeedPartialDemo"/>
<property name="sample.calendar.calendarfeed.jar" value="${sample.calendar.build.lib}/CalendarFeedDemo.jar"/>
<property name="sample.calendar.calendarfeed.main" value="sample.calendar.CalendarFeedDemo"/>
<property name="sample.calendar.aclfeed.jar" value="${sample.calendar.build.lib}/AclFeedDemo.jar"/>
<property name="sample.calendar.aclfeed.main" value="sample.calendar.AclFeedDemo"/>
<!-- dependency check -->
<target name="sample.calendar.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="calendar"/>
<param name="template.service.version" value="${calendar.spec.version}"/>
</antcall>
</target>
<path id="sample.calendar.compile.classpath">
<path refid="build.service.core.classpath"/>
<pathelement location="${gdata-calendar.jar}"/>
<pathelement location="${sample-util.jar}"/>
</path>
<!-- samples build -->
<target name="sample.calendar.build"
depends="sample.calendar.dependencies,core.sample.core.util.build"
description="Create binary distribution for calendar demos">
<mkdir dir="${sample.calendar.build.classes}"/>
<mkdir dir="${sample.calendar.build.lib}"/>
<!-- Compile Calendar samples -->
<javac srcdir="${sample.calendar.src.home}"
destdir="${sample.calendar.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.calendar.compile.classpath"/>
</javac>
<!-- Create EventFeedDemo application JAR file -->
<jar jarfile="${sample.calendar.eventfeed.jar}"
basedir="${sample.calendar.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.calendar.eventfeed.main}"/>
</manifest>
</jar>
<!-- Create EventFeedDemo application JAR file -->
<jar jarfile="${sample.calendar.eventpartial.jar}"
basedir="${sample.calendar.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.calendar.eventpartial.main}"/>
</manifest>
</jar>
<!-- Create CalendarFeedDemo application JAR file -->
<jar jarfile="${sample.calendar.calendarfeed.jar}"
basedir="${sample.calendar.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.calendar.calendarfeed.main}"/>
</manifest>
</jar>
<!-- Create AclFeedDemo application JAR file -->
<jar jarfile="${sample.calendar.aclfeed.jar}"
basedir="${sample.calendar.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.calendar.aclfeed.main}"/>
</manifest>
</jar>
</target>
<!-- samples clean -->
<target name="sample.calendar.clean"
description="Delete old build and dist directories">
<delete dir="${sample.calendar.build.classes}"/>
</target>
<!-- samples run -->
<target name="sample.calendar.eventfeed.run" depends="sample.calendar.build"
description="Runs the Calendar event feed sample">
<!-- Run EventFeedDemo -->
<java fork="true" classname="${sample.calendar.eventfeed.main}">
<arg line="${sample.credentials.username} ${sample.credentials.password}"/>
<classpath>
<path refid="sample.calendar.compile.classpath"/>
<path location="${sample.calendar.eventfeed.jar}"/>
</classpath>
</java>
</target>
<target name="sample.calendar.eventpartial.run" depends="sample.calendar.build"
description="Runs the Calendar event feed partial demo sample">
<!-- Run EventFeedDemo -->
<java fork="true" classname="${sample.calendar.eventpartial.main}">
<arg line="${sample.credentials.username} ${sample.credentials.password}"/>
<classpath>
<path refid="sample.calendar.compile.classpath"/>
<path location="${sample.calendar.eventpartial.jar}"/>
</classpath>
</java>
</target>
<target name="sample.calendar.calendarfeed.run" depends="sample.calendar.build"
description="Runs the Calendar feed sample">
<!-- Run CalendarFeedDemo -->
<java fork="true" classname="${sample.calendar.calendarfeed.main}">
<arg line="${sample.credentials.username} ${sample.credentials.password}"/>
<classpath>
<path refid="sample.calendar.compile.classpath"/>
<path location="${sample.calendar.calendarfeed.jar}"/>
</classpath>
</java>
</target>
<target name="sample.calendar.aclfeed.run" depends="sample.calendar.build"
description="Runs the Calendar ACL feed sample">
<!-- Run AclFeedDemo -->
<java fork="true" classname="${sample.calendar.aclfeed.main}">
<arg line="${sample.credentials.username} ${sample.credentials.password}"/>
<classpath>
<path refid="sample.calendar.compile.classpath"/>
<path location="${sample.calendar.aclfeed.jar}"/>
</classpath>
</java>
</target>
<target name="sample.calendar.run" depends="sample.calendar.build"
description="Runs the Calendar samples">
<antcall target="sample.calendar.eventfeed.run"/>
<antcall target="sample.calendar.calendarfeed.run"/>
<antcall target="sample.calendar.aclfeed.run"/>
</target>
</project>
+76
View File
@@ -0,0 +1,76 @@
<project name="codesearch" default="build.codesearch" basedir=".">
<!-- Path containing codesearch.xml -->
<dirname property="build_dir" file="${ant.file.codesearch}"/>
<import file="${build_dir}/core.xml"/>
<property name="gdata-codesearch.jar"
value="${build.jars}/gdata-codesearch-${codesearch.spec.version}.jar"/>
<!-- ===================================================================== -->
<!-- Build the GData Codesearch samples. -->
<!-- ===================================================================== -->
<!-- samples build Properties -->
<property name="sample.codesearch.basedir" value="${build}/sample/codesearch"/>
<property name="sample.codesearch.src.home" value="${sample.codesearch.basedir}"/>
<property name="sample.codesearch.build.classes" value="${sample.codesearch.basedir}/classes"/>
<property name="sample.codesearch.build.lib" value="${sample.codesearch.basedir}/lib"/>
<property name="sample.codesearch.jar" value="${sample.codesearch.build.lib}/CodeSearchClient.jar"/>
<property name="sample.codesearch.main" value="sample.codesearch.CodeSearchClient"/>
<!-- dependency check -->
<target name="sample.codesearch.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="codesearch"/>
<param name="template.service.version" value="${codesearch.spec.version}"/>
</antcall>
</target>
<!-- samples dependencies -->
<path id="sample.codesearch.compile.classpath">
<path refid="build.service.core.classpath"/>
<pathelement location="${gdata-codesearch.jar}"/>
<pathelement location="${sample-util.jar}"/>
</path>
<!-- samples build -->
<target name="sample.codesearch.build"
depends="sample.codesearch.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<mkdir dir="${sample.codesearch.build.lib}"/>
<mkdir dir="${sample.codesearch.build.classes}"/>
<javac srcdir="${sample.codesearch.src.home}"
destdir="${sample.codesearch.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.codesearch.compile.classpath"/>
</javac>
<jar jarfile="${sample.codesearch.jar}"
basedir="${sample.codesearch.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.codesearch.main}"/>
</manifest>
</jar>
</target>
<target name="sample.codesearch.clean"
description="Delete old build and dist directories">
<delete dir="${sample.codesearch.build.classes}"/>
</target>
<!-- samples run -->
<target name="sample.codesearch.run" depends="sample.codesearch.build"
description="Runs the CodeSearch sample">
<java fork="true" classname="${sample.codesearch.main}">
<arg line="--query ${sample.codesearch.querystring}"/>
<classpath>
<path refid="sample.codesearch.compile.classpath"/>
<path location="${sample.codesearch.jar}"/>
</classpath>
</java>
</target>
</project>
+75
View File
@@ -0,0 +1,75 @@
<project name="contacts" default="sample.contacts.build" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.contacts}"/>
<import file="${build_dir}/core.xml"/>
<!-- ===================================================================== -->
<!-- Build GData contacts library. -->
<!-- ===================================================================== -->
<property name="gdata-contacts.jar"
value="${build.jars}/gdata-contacts-${contacts.spec.version}.jar"/>
<property name="sample.contacts.basedir" value="${build}/sample/contacts"/>
<property name="sample.contacts.src.home" value="${sample.contacts.basedir}"/>
<property name="sample.contacts.build.classes" value="${sample.contacts.basedir}/classes"/>
<property name="sample.contacts.build.lib" value="${sample.contacts.basedir}/lib"/>
<property name="sample.contacts.jar" value="${sample.contacts.build.lib}/ContactsExample.jar"/>
<property name="sample.contacts.main" value="sample.contacts.ContactsExample"/>
<target name="sample.contacts.clean"
description="Delete old build and dist directories">
<delete dir="${sample.contacts.build.classes}"/>
</target>
<target name="sample.contacts.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="contacts"/>
<param name="template.service.version" value="${contacts.spec.version}"/>
</antcall>
</target>
<path id="sample.contacts.compile.classpath">
<path refid="build.service.core.classpath"/>
<pathelement location="${gdata-contacts.jar}"/>
</path>
<!-- samples build -->
<target name="sample.contacts.build"
depends="sample.contacts.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<mkdir dir="${sample.contacts.build.lib}"/>
<mkdir dir="${sample.contacts.build.classes}"/>
<javac srcdir="${sample.contacts.src.home}"
destdir="${sample.contacts.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.contacts.compile.classpath"/>
</javac>
<jar jarfile="${sample.contacts.jar}"
basedir="${sample.contacts.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.contacts.main}"/>
</manifest>
</jar>
</target>
<!-- samples run -->
<target name="sample.contacts.run"
depends="sample.contacts.build"
description="Runs the contacts sample">
<java fork="true" classname="${sample.contacts.main}">
<arg line="--username=${sample.credentials.username} --password=${sample.credentials.password} --projection=${sample.contacts.projection} --script=sample/contacts/test.txt"/>
<classpath>
<path refid="sample.contacts.compile.classpath"/>
<path location="${sample.contacts.jar}"/>
</classpath>
</java>
</target>
</project>
+226
View File
@@ -0,0 +1,226 @@
<project name="core" default="build.core" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.core}"/>
<!-- ===================================================================== -->
<!-- Global targets -->
<!-- ===================================================================== -->
<!-- Root build path -->
<property name="build" value="${build_dir}/../"/>
<!-- Path for compiled files -->
<property name="build.jars" value="${build}/lib"/>
<!-- User properties -->
<property name="version.properties" value="${build}/version.properties"/>
<property name="build.properties" value="${build_dir}/build.properties"/>
<property file="${version.properties}"/>
<property file="${build.properties}"/>
<property name="gdata-core.jar"
value="${build.jars}/gdata-core-${client.spec.version}.jar"/>
<property name="gdata-client-meta.jar"
value="${build.jars}/gdata-client-meta-${client.spec.version}.jar"/>
<property name="gdata-client.jar"
value="${build.jars}/gdata-client-${client.spec.version}.jar"/>
<property name="gdata-media.jar"
value="${build.jars}/gdata-media-${media.spec.version}.jar"/>
<!-- path for third_party google dependencies -->
<path id="build.google-deps.classpath">
<pathelement location="${google-jsr305.jar}"/>
<pathelement location="${google-collect.jar}"/>
</path>
<!-- Dependency path for all services -->
<path id="build.service.core.classpath">
<path refid="build.google-deps.classpath"/>
<pathelement location="${gdata-client.jar}"/>
</path>
<!-- Dependency path for all media enabled services -->
<path id="build.service.media.classpath">
<path refid="build.google-deps.classpath"/>
<pathelement location="${mail.jar}"/>
<pathelement location="${activation.jar}"/>
<pathelement location="${gdata-media.jar}"/>
</path>
<!-- Template to check if Service libs are available
Params:
@param template.service.name name of the service
@param template.service.version specificaiton version for the service
-->
<target name="template.require.service.jar">
<property name="template.service.jar"
value="${build.jars}/gdata-${template.service.name}-${template.service.version}.jar"/>
<available
file="${template.service.jar}"
property="has.service.jar"/>
<fail unless="has.service.jar">
Missing dependency jar: ${template.service.jar}
Please run "ant ${template.service.name}.build.${template.service.name}".
</fail>
</target>
<!-- ==================== Build Core samples ============================= -->
<!-- ===================================================================== -->
<!-- Util For Sample Targets -->
<!-- ===================================================================== -->
<property name="sample.core.util.basedir" value="${build}/sample/util"/>
<property name="sample.core.util.build.classes" value="${sample.core.util.basedir}/classes"/>
<property name="sample.core.util.build.lib" value="${sample.core.util.basedir}/lib"/>
<property name="sample-util.jar" value="${sample.core.util.build.lib}/sample-util.jar"/>
<target name="sample.core.dependencies">
<available
file="${gdata-client.jar}"
property="has.client.jar"/>
<fail unless="has.client.jar">
Missing dependency jar: ${gdata-client.jar}
Please run "ant core.build.core.client first".
</fail>
</target>
<path id="sample.core.util.compile.classpath">
<pathelement location="${gdata-core.jar}"/>
<pathelement location="${gdata-client.jar}"/>
</path>
<target name="sample.core.util.build" depends="sample.core.dependencies">
<mkdir dir="${sample.core.util.build.classes}"/>
<javac srcdir="${sample.core.util.basedir}"
destdir="${sample.core.util.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.core.util.compile.classpath"/>
</javac>
<mkdir dir="${sample.core.util.build.lib}"/>
<jar jarfile="${sample-util.jar}"
basedir="${sample.core.util.build.classes}">
</jar>
</target>
<target name="sample.core.util.clean">
<delete dir="${sample.core.util.build.classes}"/>
</target>
<!-- ===================================================================== -->
<!-- Tester Sample Targets -->
<!-- ===================================================================== -->
<property name="sample.core.tester.basedir" value="${build}/sample/tester"/>
<property name="sample.core.tester.src.home" value="${sample.core.tester.basedir}"/>
<property name="sample.core.tester.build.classes" value="${sample.core.tester.basedir}/classes"/>
<property name="sample.core.tester.build.lib" value="${sample.core.tester.basedir}/lib"/>
<property name="sample.core.tester.jar" value="${sample.core.tester.build.lib}/TesterClient.jar"/>
<property name="sample.core.tester.main" value="sample.tester.Tester"/>
<target name="sample.core.tester.clean"
description="Delete old build and dist directories">
<delete dir="${sample.core.tester.build.classes}"/>
</target>
<path id="sample.core.tester.compile.classpath">
<pathelement location="${gdata-client.jar}"/>
<pathelement location="${sample-util.jar}"/>
</path>
<target name="sample.core.tester.build" depends="sample.core.dependencies">
<mkdir dir="${sample.core.tester.build.classes}"/>
<javac srcdir="${sample.core.tester.src.home}"
destdir="${sample.core.tester.build.classes}"
debug="false"
deprecation="false"
optimize="true">
<classpath refid="sample.core.tester.compile.classpath"/>
</javac>
<mkdir dir="${sample.core.tester.build.lib}"/>
<jar jarfile="${sample.core.tester.jar}"
basedir="${sample.core.tester.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.core.tester.main}"/>
</manifest>
</jar>
</target>
<target name="sample.core.tester.run" depends="sample.core.tester.build">
<java fork="true" classname="${sample.core.tester.main}">
<arg line="-s ${sample.tester.serviceName} -a ${sample.tester.appName} -f ${sample.tester.feedUrl} -u ${sample.credentials.username} -p ${sample.credentials.password}"/>
<classpath>
<path refid="sample.core.tester.compile.classpath"/>
<path location="${sample.core.tester.jar}"/>
</classpath>
</java>
</target>
<target name="sample.core.build">
<antcall target="sample.core.util.build"/>
<antcall target="sample.core.tester.build"/>
</target>
<target name="sample.core.clean">
<antcall target="sample.core.util.clean"/>
<antcall target="sample.core.tester.clean"/>
</target>
<target name="sample.core.run">
<antcall target="sample.core.tester.run"/>
</target>
<!-- ===================================================================== -->
<!-- Third party dependency checks -->
<!-- ===================================================================== -->
<!-- Dependencies for media extensions -->
<target name="require.client.dependencies">
<available file="${mail.jar}" property="has.sunmail"/>
<available file="${activation.jar}" property="has.sunactivation"/>
<fail unless="has.sunmail">missing jar file: ${mail.jar}
The GData client requires Sun's javamail API (version 1.4), which
is not included in this distribution.
You can download it from:
http://java.sun.com/products/javamail/downloads/index.html
Then save it under:
${mail.jar}
</fail>
<fail unless="has.sunactivation">missing jar file: ${activation.jar}
The GData client requires Sun's Activation Framework 1.1, which
is not included in this distribution.
You can download it from:
http://java.sun.com/products/javabeans/jaf/downloads/index.html
Then save it under:
${activation.jar}
</fail>
</target>
<target name="require.servlet-api">
<available file="${servlet.jar}" property="has.servlet-api"/>
<fail unless="has.servlet-api">missing jar file: ${servlet.jar}
The recipe example requires Sun's Servlet API (version 2.3 or 2.4), which
is not included in this distribution.
You can download it from:
http://java.sun.com/products/servlet/download.html
Under SPECIFICATIONS/Java Servlet, download 'class files 2.3' from "2.3 - Final Release"
Then save it under:
${servlet.jar}
</fail>
</target>
</project>
+89
View File
@@ -0,0 +1,89 @@
<project name="docs" default="build.docs" basedir=".">
<!-- Path containing docs.xml -->
<dirname property="build_dir" file="${ant.file.docs}"/>
<import file="${build_dir}/core.xml"/>
<import file="${build_dir}/spreadsheet.xml"/>
<property name="gdata-docs.jar"
value="${build.jars}/gdata-docs-${docs.spec.version}.jar"/>
<!-- ===================================================================== -->
<!-- Build the GData Docs samples. -->
<!-- ===================================================================== -->
<!-- samples build Properties -->
<property name="sample.docs.basedir"
value="${basedir}/sample/docs"/>
<property name="sample.docs.src.home"
value="${sample.docs.basedir}"/>
<property name="sample.docs.build.classes"
value="${sample.docs.basedir}/classes"/>
<property name="sample.docs.build.lib"
value="${sample.docs.basedir}/lib"/>
<property name="sample.docs.jar"
value="${sample.docs.build.lib}/DocumentListDemo.jar"/>
<property name="sample.docs.main"
value="sample.docs.DocumentListDemo"/>
<!-- dependency check -->
<target name="sample.docs.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="docs"/>
<param name="template.service.version" value="${docs.spec.version}"/>
</antcall>
</target>
<path id="sample.docs.compile.classpath">
<path refid="build.service.media.classpath"/>
<pathelement location="${gdata-spreadsheet.jar}"/>
<pathelement location="${gdata-docs.jar}"/>
<pathelement location="${sample-util.jar}"/>
</path>
<!-- samples build -->
<target name="sample.docs.build" depends="sample.docs.dependencies"
description="Create binary distribution">
<mkdir dir="${sample.docs.build.lib}"/>
<mkdir dir="${sample.docs.build.classes}"/>
<javac srcdir="${sample.docs.src.home}"
destdir="${sample.docs.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.docs.compile.classpath"/>
</javac>
<jar jarfile="${sample.docs.jar}"
basedir="${sample.docs.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.docs.main}"/>
</manifest>
</jar>
</target>
<target name="sample.docs.clean"
description="Delete old build and dist directories">
<delete dir="${sample.docs.build.classes}"/>
</target>
<!-- samples run -->
<target name="sample.docs.run"
depends="sample.docs.build"
description="Runs the docs sample">
<java fork="true" classname="${sample.docs.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password}"/>
<classpath>
<path refid="sample.docs.compile.classpath"/>
<path location="${sample.docs.jar}"/>
</classpath>
</java>
</target>
</project>
+75
View File
@@ -0,0 +1,75 @@
<project name="finance" default="sample.finance.build" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.finance}"/>
<import file="${build_dir}/core.xml"/>
<!-- ===================================================================== -->
<!-- Build GData finance library. -->
<!-- ===================================================================== -->
<property name="gdata-finance.jar"
value="${build.jars}/gdata-finance-${finance.spec.version}.jar"/>
<property name="sample.finance.basedir" value="${build}/sample/finance"/>
<property name="sample.finance.src.home" value="${sample.finance.basedir}"/>
<property name="sample.finance.build.classes" value="${sample.finance.basedir}/classes"/>
<property name="sample.finance.build.lib" value="${sample.finance.basedir}/lib"/>
<property name="sample.finance.jar" value="${sample.finance.build.lib}/FinancePortfoliosClient.jar"/>
<property name="sample.finance.main" value="sample.finance.FinancePortfoliosClient"/>
<target name="sample.finance.clean"
description="Delete old build and dist directories">
<delete dir="${sample.finance.build.classes}"/>
</target>
<target name="sample.finance.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="finance"/>
<param name="template.service.version" value="${finance.spec.version}"/>
</antcall>
</target>
<path id="sample.finance.compile.classpath">
<path refid="build.service.core.classpath"/>
<pathelement location="${gdata-finance.jar}"/>
</path>
<!-- samples build -->
<target name="sample.finance.build"
depends="sample.finance.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<mkdir dir="${sample.finance.build.lib}"/>
<mkdir dir="${sample.finance.build.classes}"/>
<javac srcdir="${sample.finance.src.home}"
destdir="${sample.finance.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.finance.compile.classpath"/>
</javac>
<jar jarfile="${sample.finance.jar}"
basedir="${sample.finance.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.finance.main}"/>
</manifest>
</jar>
</target>
<!-- samples run -->
<target name="sample.finance.run"
depends="sample.finance.build"
description="Runs the finance sample">
<java fork="true" classname="${sample.finance.main}">
<arg line="http://finance.google.com ${sample.credentials.username} ${sample.credentials.password}"/>
<classpath>
<path refid="sample.finance.compile.classpath"/>
<path location="${sample.finance.jar}"/>
</classpath>
</java>
</target>
</project>
+154
View File
@@ -0,0 +1,154 @@
<project name="gbase" default="build.gbase" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.gbase}"/>
<import file="${build_dir}/core.xml"/>
<!-- ===================================================================== -->
<!-- Build the GData Base API library. -->
<!-- ===================================================================== -->
<!-- build Properties -->
<property name="gdata-base.jar"
value="${build.jars}/gdata-base-${base.spec.version}.jar"/>
<!-- ===================================================================== -->
<!-- Build the GData Google Base API samples. -->
<!-- ===================================================================== -->
<!-- samples build Properties -->
<property name="sample.gbase.basedir" value="${build}/sample/gbase"/>
<property name="sample.gbase.cmdlinedir" value="${sample.gbase.basedir}/cmdline"/>
<property name="sample.gbase.recipe" value="${sample.gbase.basedir}/recipe"/>
<property name="sample.gbase.build.classes" value="${sample.gbase.basedir}/classes"/>
<property name="sample.gbase.build.lib" value="${sample.gbase.basedir}/lib"/>
<property name="sample.gbase.cmdline.jar" value="${sample.gbase.build.lib}/gdata-base-cmdline.jar"/>
<property name="sample.gbase.recipe.war" value="${sample.gbase.build.lib}/gdata-base-recipe.war"/>
<!-- dependency check -->
<target name="sample.gbase.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="base"/>
<param name="template.service.version" value="${base.spec.version}"/>
</antcall>
</target>
<target name="sample.gbase.dirs">
<mkdir dir="${sample.gbase.build.classes}"/>
<mkdir dir="${sample.gbase.build.lib}"/>
</target>
<target name="sample.gbase.clean"
description="Delete old build and dist directories">
<delete dir="${sample.gbase.build.classes}"/>
</target>
<!-- samples compile -->
<path id="sample.gbase.cmdline.compile.classpath">
<path refid="build.service.media.classpath"/>
<pathelement location="${gdata-base.jar}"/>
</path>
<path id="sample.gbase.recipe.compile.classpath">
<path refid="build.service.media.classpath"/>
<pathelement location="${servlet.jar}"/>
<pathelement location="${gdata-base.jar}"/>
</path>
<target name="sample.gbase.cmdline.compile" depends="sample.gbase.dirs,sample.gbase.dependencies"
description="Compile Java sources">
<javac srcdir="${sample.gbase.cmdlinedir}"
destdir="${sample.gbase.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.gbase.cmdline.compile.classpath"/>
</javac>
</target>
<target name="sample.gbase.recipe.compile" depends="sample.gbase.dirs,core.require.servlet-api"
description="Compile Java sources">
<javac srcdir="${sample.gbase.recipe}"
destdir="${sample.gbase.build.classes}"
debug="false"
deprecation="false"
optimize="true">
<classpath refid="sample.gbase.recipe.compile.classpath"/>
</javac>
</target>
<target name="sample.gbase.compile">
<antcall target="sample.gbase.cmdline.compile"/>
<antcall target="sample.gbase.recipe.compile"/>
</target>
<!-- samples build -->
<target name="sample.gbase.cmdline.build" depends="sample.gbase.cmdline.compile"
description="build the command-line tools ${gdata-base-cmdline.jar}">
<jar destfile="${sample.gbase.cmdline.jar}"
basedir="${sample.gbase.build.classes}" >
<manifest>
<attribute name="Class-Path" value="../../../${gdata-base.jar}"/>
<attribute name="Main-Class"
value="sample/gbase/cmdline/CustomerTool"/>
</manifest>
</jar>
</target>
<target name="sample.gbase.recipe.build" depends="sample.gbase.recipe.compile"
description="build the example web application ${gdata-base-recipe.war}" >
<war destfile="${sample.gbase.recipe.war}"
webxml="${sample.gbase.recipe}/WEB-INF/web.xml">
<classes dir="${sample.gbase.build.classes}">
<include name="**/sample/gbase/recipe/**"/>
</classes>
<lib dir="${build.jars}" >
<include name="${google-collect.jar}"/>
<include name="${gdata-client.jar}"/>
<include name="${gdata-base.jar}"/>
</lib>
<webinf dir="${sample.gbase.recipe}/WEB-INF">
<include name="*.jsp"/>
<include name="*.inc"/>
</webinf>
<zipfileset dir="${sample.gbase.recipe}">
<include name="*.gif"/>
<include name="*.css"/>
<include name="index.jsp"/>
</zipfileset>
</war>
</target>
<target name="sample.gbase.build" depends="sample.gbase.compile">
<antcall target="sample.gbase.cmdline.build" />
<antcall target="sample.gbase.recipe.build" />
</target>
<!-- samples run -->
<target name="sample.gbase.cmdline.customertool.query" depends="sample.gbase.cmdline.build"
description="Runs the Google Base commandline query sample">
<java fork="true" classname="sample.gbase.cmdline.CustomerTool">
<arg line="query --user ${sample.credentials.username} --password ${sample.credentials.password}"/>
<classpath>
<path refid="sample.gbase.cmdline.compile.classpath"/>
<path location="${sample.gbase.cmdline.jar}"/>
</classpath>
</java>
</target>
<target name="sample.gbase.cmdline.queryexample" depends="sample.gbase.cmdline.build"
description="Runs the Google Base commandline query sample">
<java fork="true" classname="sample.gbase.cmdline.QueryExample">
<arg line="${sample.gbase.cmdline.queryexample.querystring}"/>
<classpath>
<path refid="sample.gbase.cmdline.compile.classpath"/>
<path location="${sample.gbase.cmdline.jar}"/>
</classpath>
</java>
</target>
<target name="sample.gbase.run" description="Runs the Google Base commandline samples">
<antcall target="sample.gbase.cmdline.customertool.query"/>
<antcall target="sample.gbase.cmdline.queryexample"/>
</target>
</project>
+69
View File
@@ -0,0 +1,69 @@
<project name="gtt" default="sample.gtt.build" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.gtt}"/>
<import file="${build_dir}/core.xml"/>
<import file="${build_dir}/gtt.xml"/>
<property name="gdata-gtt.jar"
value="${build.jars}/gdata-gtt-${gtt.spec.version}.jar"/>
<!-- ===================================================================== -->
<!-- Build GData Translator Toolkit samples. -->
<!-- ===================================================================== -->
<!-- build Properties -->
<property name="sample.gtt.basedir" value="${build}/sample/gtt"/>
<property name="sample.gtt.src.home" value="${sample.gtt.basedir}"/>
<property name="sample.gtt.build.classes" value="${sample.gtt.basedir}/classes"/>
<property name="sample.gtt.build.lib" value="${sample.gtt.basedir}/lib"/>
<property name="sample.gtt.jar" value="${sample.gtt.build.lib}/GttClient.jar"/>
<property name="sample.gtt.main" value="sample.gtt.GttClient"/>
<path id="sample.gtt.compile.classpath">
<path refid="build.service.media.classpath"/>
<path location="${gdata-gtt.jar}"/>
<path location="${sample-util.jar}"/>
</path>
<target name="sample.gtt.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="gtt"/>
<param name="template.service.version" value="${gtt.spec.version}"/>
</antcall>
</target>
<target name="sample.gtt.build" depends="sample.gtt.dependencies">
<mkdir dir="${sample.gtt.build.lib}"/>
<mkdir dir="${sample.gtt.build.classes}"/>
<javac srcdir="${sample.gtt.src.home}"
destdir="${sample.gtt.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.gtt.compile.classpath"/>
</javac>
<jar jarfile="${sample.gtt.jar}"
basedir="${sample.gtt.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.gtt.main}"/>
</manifest>
</jar>
</target>
<target name="sample.gtt.clean"
description="Delete old build and dist directories">
<delete dir="${sample.gtt.build.classes}"/>
</target>
<target name="sample.gtt.run" depends="sample.gtt.build">
<java fork="true" classname="${sample.gtt.main}">
<arg line="login --username ${sample.credentials.username} --password ${sample.credentials.password}"/>
<classpath>
<path refid="sample.gtt.compile.classpath"/>
<path location="${sample-util.jar}"/>
<path location="${sample.gtt.jar}"/>
</classpath>
</java>
</target>
</project>
+76
View File
@@ -0,0 +1,76 @@
<project name="health" default="sample.health.build" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.health}"/>
<import file="${build_dir}/core.xml"/>
<!-- ===================================================================== -->
<!-- Build GData health library. -->
<!-- ===================================================================== -->
<property name="gdata-health.jar"
value="${build.jars}/gdata-health-${health.spec.version}.jar"/>
<property name="sample.health.basedir" value="${build}/sample/health"/>
<property name="sample.health.src.home" value="${sample.health.basedir}"/>
<property name="sample.health.build.classes" value="${sample.health.basedir}/classes"/>
<property name="sample.health.build.lib" value="${sample.health.basedir}/lib"/>
<property name="sample.health.jar" value="${sample.health.build.lib}/HealthDemo.jar"/>
<property name="sample.health.main" value="sample.health.HealthDemo"/>
<target name="sample.health.clean"
description="Delete old build and dist directories">
<delete dir="${sample.health.build.classes}"/>
</target>
<target name="sample.health.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="health"/>
<param name="template.service.version" value="${health.spec.version}"/>
</antcall>
</target>
<path id="sample.health.compile.classpath">
<path refid="build.service.core.classpath"/>
<pathelement location="${gdata-health.jar}"/>
<pathelement location="${sample-util.jar}"/>
</path>
<!-- samples build -->
<target name="sample.health.build"
depends="sample.health.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<mkdir dir="${sample.health.build.lib}"/>
<mkdir dir="${sample.health.build.classes}"/>
<javac srcdir="${sample.health.src.home}"
destdir="${sample.health.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.health.compile.classpath"/>
</javac>
<jar jarfile="${sample.health.jar}"
basedir="${sample.health.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.health.main}"/>
</manifest>
</jar>
</target>
<!-- samples run -->
<target name="sample.health.run"
depends="sample.health.build"
description="Runs the health sample">
<java fork="true" classname="${sample.health.main}">
<arg line="--username=${sample.credentials.username} --password=${sample.credentials.password}"/>
<classpath>
<path refid="sample.health.compile.classpath"/>
<path location="${sample.health.jar}"/>
</classpath>
</java>
</target>
</project>
+75
View File
@@ -0,0 +1,75 @@
<project name="maps" default="sample.maps.build" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.maps}"/>
<import file="${build_dir}/core.xml"/>
<!-- ===================================================================== -->
<!-- Build GData maps library. -->
<!-- ===================================================================== -->
<property name="gdata-maps.jar"
value="${build.jars}/gdata-maps-${maps.spec.version}.jar"/>
<property name="sample.maps.basedir" value="${build}/sample/maps"/>
<property name="sample.maps.src.home" value="${sample.maps.basedir}"/>
<property name="sample.maps.build.classes" value="${sample.maps.basedir}/classes"/>
<property name="sample.maps.build.lib" value="${sample.maps.basedir}/lib"/>
<property name="sample.maps.jar" value="${sample.maps.build.lib}/maps.jar"/>
<property name="sample.maps.main" value="sample.maps.Maps"/>
<target name="sample.maps.clean"
description="Delete old build and dist directories">
<delete dir="${sample.maps.build.classes}"/>
</target>
<target name="sample.maps.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="maps"/>
<param name="template.service.version" value="${maps.spec.version}"/>
</antcall>
</target>
<path id="sample.maps.compile.classpath">
<path refid="build.service.media.classpath"/>
<pathelement location="${gdata-maps.jar}"/>
</path>
<!-- samples build -->
<target name="sample.maps.build"
depends="sample.maps.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<mkdir dir="${sample.maps.build.lib}"/>
<mkdir dir="${sample.maps.build.classes}"/>
<javac srcdir="${sample.maps.src.home}"
destdir="${sample.maps.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.maps.compile.classpath"/>
</javac>
<jar jarfile="${sample.maps.jar}"
basedir="${sample.maps.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.maps.main}"/>
</manifest>
</jar>
</target>
<!-- samples run -->
<target name="sample.maps.run"
depends="sample.maps.build"
description="Runs the maps sample">
<java fork="true" classname="${sample.maps.main}">
<arg line="query maps -user ${sample.credentials.username} -password ${sample.credentials.password}"/>
<classpath>
<path refid="sample.maps.compile.classpath"/>
<path location="${sample.maps.jar}"/>
</classpath>
</java>
</target>
</project>
+64
View File
@@ -0,0 +1,64 @@
<project name="oauth" default="sample.oauth.build" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.oauth}"/>
<import file="${build_dir}/core.xml"/>
<import file="${build_dir}/blogger.xml"/>
<import file="${build_dir}/calendar.xml"/>
<import file="${build_dir}/contacts.xml"/>
<import file="${build_dir}/photos.xml"/>
<!-- ===================================================================== -->
<!-- Build GData Oauth samples. -->
<!-- ===================================================================== -->
<!-- build Properties -->
<property name="sample.oauth.basedir" value="${build}/sample/oauth"/>
<property name="sample.oauth.src.home" value="${sample.oauth.basedir}"/>
<property name="sample.oauth.build.classes" value="${sample.oauth.basedir}/classes"/>
<property name="sample.oauth.build.lib" value="${sample.oauth.basedir}/lib"/>
<property name="sample.oauth.jar" value="${sample.oauth.build.lib}/OAuthExample.jar"/>
<property name="sample.oauth.main" value="sample.oauth.OAuthExample"/>
<path id="sample.oauth.compile.classpath">
<path refid="build.service.core.classpath"/>
<path location="${gdata-blogger.jar}"/>
<path location="${gdata-contacts.jar}"/>
<path location="${gdata-finance.jar}"/>
<path location="${gdata-photos.jar}"/>
<path location="${activation.jar}"/>
<path location="${mail.jar}"/>
</path>
<target name="sample.oauth.build" depends="sample.core.dependencies">
<mkdir dir="${sample.oauth.build.lib}"/>
<mkdir dir="${sample.oauth.build.classes}"/>
<javac srcdir="${sample.oauth.src.home}"
destdir="${sample.oauth.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.oauth.compile.classpath"/>
</javac>
<jar jarfile="${sample.oauth.jar}"
basedir="${sample.oauth.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.oauth.main}"/>
</manifest>
</jar>
</target>
<target name="sample.oauth.clean"
description="Delete old build and dist directories">
<delete dir="${sample.oauth.build.classes}"/>
</target>
<target name="sample.oauth.run" depends="sample.oauth.build">
<java fork="true" classname="${sample.oauth.main}">
<classpath>
<path refid="sample.oauth.compile.classpath"/>
<path location="${sample.oauth.jar}"/>
</classpath>
</java>
</target>
</project>
+108
View File
@@ -0,0 +1,108 @@
<project name="photos" default="build.photos" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.core}"/>
<import file="${build_dir}/core.xml"/>
<!-- ===================================================================== -->
<!-- Build GData photos library. -->
<!-- ===================================================================== -->
<property name="gdata-photos.jar"
value="${build.jars}/gdata-photos-${photos.spec.version}.jar"/>
<!-- ===================================================================== -->
<!-- Build the GData Photos samples. -->
<!-- ===================================================================== -->
<!-- samples build Properties -->
<property name="sample.photos.basedir"
value="${basedir}/sample/photos"/>
<property name="sample.photos.src.home"
value="${sample.photos.basedir}"/>
<property name="sample.photos.build.classes"
value="${sample.photos.basedir}/classes"/>
<property name="sample.photos.build.lib"
value="${sample.photos.basedir}/lib"/>
<property name="sample.photos.jar"
value="${sample.photos.build.lib}/PhotosClient.jar"/>
<property name="sample.photos.main"
value="sample.photos.PicasawebCommandLine"/>
<property name="sample.photospartial.main"
value="sample.photos.PicasawebPartialDemo"/>
<target name="sample.photos.clean"
description="Delete old build and dist directories">
<delete dir="${sample.photos.build.classes}"/>
</target>
<!-- dependency check -->
<target name="sample.photos.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="photos"/>
<param name="template.service.version" value="${photos.spec.version}"/>
</antcall>
</target>
<!-- samples dependencies -->
<path id="sample.photos.compile.classpath">
<path refid="build.service.media.classpath"/>
<pathelement location="${sample-util.jar}"/>
<pathelement location="${gdata-photos.jar}"/>
</path>
<!-- samples build -->
<target name="sample.photos.build"
depends="sample.photos.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<mkdir dir="${sample.photos.build.lib}"/>
<mkdir dir="${sample.photos.build.classes}"/>
<javac srcdir="${sample.photos.src.home}"
destdir="${sample.photos.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.photos.compile.classpath"/>
</javac>
<jar jarfile="${sample.photos.jar}"
basedir="${sample.photos.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.photos.main}"/>
</manifest>
</jar>
</target>
<!-- samples run -->
<target name="sample.photos.run"
depends="sample.photos.build"
description="Runs the Photos sample">
<java fork="true" classname="${sample.photos.main}">
<arg line="${sample.credentials.username} ${sample.credentials.password}"/>
<classpath>
<path refid="sample.photos.compile.classpath"/>
<path location="${sample.photos.jar}"/>
</classpath>
</java>
</target>
<target name="sample.photospartial.run"
depends="sample.photos.build"
description="Runs the Photos sample">
<java fork="true" classname="${sample.photospartial.main}">
<arg line="${sample.credentials.username} ${sample.credentials.password}"/>
<classpath>
<path refid="sample.photos.compile.classpath"/>
<path location="${sample.photos.jar}"/>
</classpath>
</java>
</target>
</project>
@@ -0,0 +1,98 @@
<project name="projecthosting" default="sample.projecthosting.build" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.projecthosting}"/>
<import file="${build_dir}/core.xml"/>
<!-- ===================================================================== -->
<!-- Build GData Project Hosting library -->
<!-- ===================================================================== -->
<property name="gdata-projecthosting.jar"
value="${build.jars}/gdata-projecthosting-${projecthosting.spec.version}.jar"/>
<property name="sample.projecthosting.basedir" value="${build}/sample/projecthosting"/>
<property name="sample.projecthosting.src.home" value="${sample.projecthosting.basedir}"/>
<property name="sample.projecthosting.build.classes" value="${sample.projecthosting.basedir}/classes"/>
<property name="sample.projecthosting.build.lib" value="${sample.projecthosting.basedir}/lib"/>
<property name="sample.projecthosting.read.jar" value="${sample.projecthosting.build.lib}/ProjectHostingReadDemo.jar"/>
<property name="sample.projecthosting.write.jar" value="${sample.projecthosting.build.lib}/ProjectHostingWriteDemo.jar"/>
<property name="sample.projecthosting.read.main" value="sample.projecthosting.ProjectHostingReadDemo"/>
<property name="sample.projecthosting.write.main" value="sample.projecthosting.ProjectHostingWriteDemo"/>
<target name="sample.projecthosting.clean"
description="Delete old build and dist directories">
<delete dir="${sample.projecthosting.build.classes}"/>
</target>
<target name="sample.projecthosting.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="projecthosting"/>
<param name="template.service.version" value="${projecthosting.spec.version}"/>
</antcall>
</target>
<path id="sample.projecthosting.compile.classpath">
<path refid="build.service.core.classpath"/>
<pathelement location="${sample-util.jar}"/>
<pathelement location="${gdata-projecthosting.jar}"/>
</path>
<!-- samples build -->
<target name="sample.projecthosting.build"
depends="sample.projecthosting.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<mkdir dir="${sample.projecthosting.build.lib}"/>
<mkdir dir="${sample.projecthosting.build.classes}"/>
<javac srcdir="${sample.projecthosting.src.home}"
destdir="${sample.projecthosting.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.projecthosting.compile.classpath"/>
</javac>
<jar jarfile="${sample.projecthosting.read.jar}"
basedir="${sample.projecthosting.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.projecthosting.read.main}"/>
</manifest>
</jar>
<jar jarfile="${sample.projecthosting.write.jar}"
basedir="${sample.projecthosting.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.projecthosting.write.main}"/>
</manifest>
</jar>
</target>
<!-- samples run -->
<target name="sample.projecthosting.read.run"
depends="sample.projecthosting.build"
description="Runs the projecthosting sample">
<java fork="true" classname="${sample.projecthosting.read.main}">
<arg line="--project ${sample.projecthosting.projectname} --username ${sample.credentials.username} --password ${sample.credentials.password}"/>
<classpath>
<path refid="sample.projecthosting.compile.classpath"/>
<path location="${sample.projecthosting.read.jar}"/>
</classpath>
</java>
</target>
<target name="sample.projecthosting.write.run"
depends="sample.projecthosting.build"
description="Runs the projecthosting sample">
<java fork="true" classname="${sample.projecthosting.write.main}">
<arg line="--project ${sample.projecthosting.projectname} --username ${sample.credentials.username} --password ${sample.credentials.password}"/>
<classpath>
<path refid="sample.projecthosting.compile.classpath"/>
<path location="${sample.projecthosting.write.jar}"/>
</classpath>
</java>
</target>
</project>
+75
View File
@@ -0,0 +1,75 @@
<project name="sidewiki" default="sample.sidewiki.build" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.sidewiki}"/>
<import file="${build_dir}/core.xml"/>
<!-- ===================================================================== -->
<!-- Build GData Sidewiki library -->
<!-- ===================================================================== -->
<property name="gdata-sidewiki.jar"
value="${build.jars}/gdata-sidewiki-${sidewiki.spec.version}.jar"/>
<property name="sample.sidewiki.basedir" value="${build}/sample/sidewiki"/>
<property name="sample.sidewiki.src.home" value="${sample.sidewiki.basedir}"/>
<property name="sample.sidewiki.build.classes" value="${sample.sidewiki.basedir}/classes"/>
<property name="sample.sidewiki.build.lib" value="${sample.sidewiki.basedir}/lib"/>
<property name="sample.sidewiki.jar" value="${sample.sidewiki.build.lib}/SidewikiEntryFeedDemo.jar"/>
<property name="sample.sidewiki.main" value="sample.sidewiki.SidewikiEntryFeedDemo"/>
<target name="sample.sidewiki.clean"
description="Delete old build and dist directories">
<delete dir="${sample.sidewiki.build.classes}"/>
</target>
<target name="sample.sidewiki.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="sidewiki"/>
<param name="template.service.version" value="${sidewiki.spec.version}"/>
</antcall>
</target>
<path id="sample.sidewiki.compile.classpath">
<path refid="build.service.core.classpath"/>
<pathelement location="${gdata-sidewiki.jar}"/>
</path>
<!-- samples build -->
<target name="sample.sidewiki.build"
depends="sample.sidewiki.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<mkdir dir="${sample.sidewiki.build.lib}"/>
<mkdir dir="${sample.sidewiki.build.classes}"/>
<javac srcdir="${sample.sidewiki.src.home}"
destdir="${sample.sidewiki.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.sidewiki.compile.classpath"/>
</javac>
<jar jarfile="${sample.sidewiki.jar}"
basedir="${sample.sidewiki.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.sidewiki.main}"/>
</manifest>
</jar>
</target>
<!-- samples run -->
<target name="sample.sidewiki.run"
depends="sample.sidewiki.build"
description="Runs the sidewiki sample">
<java fork="true" classname="${sample.sidewiki.main}">
<arg line="${sample.credentials.username} ${sample.credentials.password} ${sample.sidewiki.webpageurl}"/>
<classpath>
<path refid="sample.sidewiki.compile.classpath"/>
<path location="${sample.sidewiki.jar}"/>
</classpath>
</java>
</target>
</project>
+94
View File
@@ -0,0 +1,94 @@
<project name="sites" default="build.sites" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.core}"/>
<import file="${build_dir}/core.xml"/>
<import file="${build_dir}/spreadsheet.xml"/>
<!-- ===================================================================== -->
<!-- Build GData Sites library. -->
<!-- ===================================================================== -->
<property name="gdata-sites.jar"
value="${build.jars}/gdata-sites-${sites.spec.version}.jar"/>
<!-- ===================================================================== -->
<!-- Build the GData Sites samples. -->
<!-- ===================================================================== -->
<!-- samples build Properties -->
<property name="sample.sites.basedir"
value="${basedir}/sample/sites"/>
<property name="sample.sites.src.home"
value="${sample.sites.basedir}"/>
<property name="sample.sites.build.classes"
value="${sample.sites.basedir}/classes"/>
<property name="sample.sites.build.lib"
value="${sample.sites.basedir}/lib"/>
<property name="sample.sites.jar"
value="${sample.sites.build.lib}/SitesDemo.jar"/>
<property name="sample.sites.main"
value="sample.sites.SitesDemo"/>
<target name="sample.sites.clean"
description="Delete old build and dist directories">
<delete dir="${sample.sites.build.classes}"/>
</target>
<!-- dependency check -->
<target name="sample.sites.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="sites"/>
<param name="template.service.version" value="${sites.spec.version}"/>
</antcall>
</target>
<!-- samples dependencies -->
<path id="sample.sites.compile.classpath">
<path refid="build.service.media.classpath"/>
<pathelement location="${gdata-spreadsheet.jar}"/>
<pathelement location="${gdata-sites.jar}"/>
<pathelement location="${sample-util.jar}"/>
</path>
<!-- samples build -->
<target name="sample.sites.build"
depends="sample.sites.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<mkdir dir="${sample.sites.build.lib}"/>
<mkdir dir="${sample.sites.build.classes}"/>
<javac srcdir="${sample.sites.src.home}"
destdir="${sample.sites.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.sites.compile.classpath"/>
</javac>
<jar jarfile="${sample.sites.jar}"
basedir="${sample.sites.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.sites.main}"/>
</manifest>
</jar>
</target>
<!-- samples run -->
<target name="sample.sites.run"
depends="sample.sites.build"
description="Runs the sites sample">
<java fork="true" classname="${sample.sites.main}">
<arg line="--username ${sample.appsforyourdomain.admin_email} --password ${sample.appsforyourdomain.admin_password} --domain ${sample.sites.domain} --siteName ${sample.sites.webspacename}"/>
<classpath>
<path refid="sample.sites.compile.classpath"/>
<path location="${sample.sites.jar}"/>
</classpath>
</java>
</target>
</project>
+275
View File
@@ -0,0 +1,275 @@
<project name="spreadsheet" default="build.spreadsheet" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.spreadsheet}"/>
<import file="${build_dir}/core.xml"/>
<!-- ===================================================================== -->
<!-- Build GData Spreadsheet library. -->
<!-- ===================================================================== -->
<property name="gdata-spreadsheet.jar"
value="${build.jars}/gdata-spreadsheet-${spreadsheet.spec.version}.jar"/>
<!-- ===================================================================== -->
<!-- Build the GData Spreadsheet samples. -->
<!-- ===================================================================== -->
<!-- samples build Properties -->
<property name="sample.spreadsheet.basedir" value="${build}/sample/spreadsheet"/>
<property name="sample.spreadsheet.src.home" value="${sample.spreadsheet.basedir}"/>
<property name="sample.spreadsheet.build.classes" value="${sample.spreadsheet.basedir}/classes"/>
<property name="sample.spreadsheet.build.lib" value="${sample.spreadsheet.basedir}/lib"/>
<property name="sample.spreadsheet.celldemo.jar"
value="${sample.spreadsheet.build.lib}/CellDemo.jar"/>
<property name="sample.spreadsheet.celldemo.main"
value="sample.spreadsheet.cell.CellDemo"/>
<property name="sample.spreadsheet.listdemo.jar"
value="${sample.spreadsheet.build.lib}/ListDemo.jar"/>
<property name="sample.spreadsheet.listdemo.main"
value="sample.spreadsheet.list.ListDemo"/>
<property name="sample.spreadsheet.recorddemo.jar"
value="${sample.spreadsheet.build.lib}/RecordDemo.jar"/>
<property name="sample.spreadsheet.recorddemo.main"
value="sample.spreadsheet.record.RecordDemo"/>
<property name="sample.spreadsheet.worksheetdemo.jar"
value="${sample.spreadsheet.build.lib}/WorksheetDemo.jar"/>
<property name="sample.spreadsheet.worksheetdemo.main"
value="sample.spreadsheet.worksheet.WorksheetDemo"/>
<property name="sample.spreadsheet.tabledemo.jar"
value="${sample.spreadsheet.build.lib}/TableDemo.jar"/>
<property name="sample.spreadsheet.tabledemo.main"
value="sample.spreadsheet.table.TableDemo"/>
<property name="sample.spreadsheet.guidemo.jar"
value="${sample.spreadsheet.build.lib}/GUIDemo.jar"/>
<property name="sample.spreadsheet.guidemo.main"
value="sample.spreadsheet.gui.SpreadsheetApiDemo"/>
<property name="sample.spreadsheet.indexclient.jar"
value="${sample.spreadsheet.build.lib}/IndexClient.jar"/>
<property name="sample.spreadsheet.indexclient.main"
value="sample.spreadsheet.IndexClient"/>
<property name="sample.spreadsheet.importclient.jar"
value="${sample.spreadsheet.build.lib}/ImportClient.jar"/>
<property name="sample.spreadsheet.importclient.main"
value="sample.spreadsheet.ImportClient"/>
<!-- dependency check -->
<target name="sample.spreadsheet.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="spreadsheet"/>
<param name="template.service.version" value="${spreadsheet.spec.version}"/>
</antcall>
</target>
<!-- samples dependencies -->
<path id="sample.spreadsheet.compile.classpath">
<path refid="build.service.core.classpath"/>
<pathelement location="${gdata-spreadsheet.jar}"/>
<pathelement location="${sample-util.jar}"/>
</path>
<!-- samples build -->
<target name="sample.spreadsheet.build"
depends="sample.spreadsheet.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<!-- Compile Java classes as necessary -->
<mkdir dir="${sample.spreadsheet.build.classes}"/>
<javac srcdir="${sample.spreadsheet.src.home}"
destdir="${sample.spreadsheet.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.spreadsheet.compile.classpath"/>
</javac>
<!-- Create dist directory -->
<mkdir dir="${sample.spreadsheet.build.lib}"/>
<!-- Create CellDemo JAR file -->
<jar jarfile="${sample.spreadsheet.celldemo.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.celldemo.main}"/>
</manifest>
</jar>
<!-- Create ListDemo JAR file -->
<jar jarfile="${sample.spreadsheet.listdemo.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.listdemo.main}"/>
</manifest>
</jar>
<!-- Create RecordDemo JAR file -->
<jar jarfile="${sample.spreadsheet.recorddemo.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.recorddemo.main}"/>
</manifest>
</jar>
<!-- Create WorksheetDemo JAR file -->
<jar jarfile="${sample.spreadsheet.worksheetdemo.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.worksheetdemo.main}"/>
</manifest>
</jar>
<!-- Create TableDemo JAR file -->
<jar jarfile="${sample.spreadsheet.tabledemo.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.tabledemo.main}"/>
</manifest>
</jar>
<!-- Create GUIDemo JAR file -->
<jar jarfile="${sample.spreadsheet.guidemo.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.guidemo.main}"/>
</manifest>
</jar>
<!-- Create IndexClient JAR file -->
<jar jarfile="${sample.spreadsheet.indexclient.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.indexclient.main}"/>
</manifest>
</jar>
<!-- Create ImportClient JAR file -->
<jar jarfile="${sample.spreadsheet.importclient.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.importclient.main}"/>
</manifest>
</jar>
</target>
<target name="sample.spreadsheet.clean"
description="Delete old build and dist directories">
<delete dir="${sample.spreadsheet.build.classes}"/>
</target>
<!-- samples run -->
<target name="sample.spreadsheet.celldemo.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet CellDemo sample">
<java fork="true" classname="${sample.spreadsheet.celldemo.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password}"/>
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.celldemo.jar}"/>
</classpath>
</java>
</target>
<target name="sample.spreadsheet.listdemo.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet ListDemo sample">
<java fork="true" classname="${sample.spreadsheet.listdemo.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password}"/>
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.listdemo.jar}"/>
</classpath>
</java>
</target>
<target name="sample.spreadsheet.recorddemo.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet Record Demo sample">
<java fork="true" classname="${sample.spreadsheet.recorddemo.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password}"/>
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.recorddemo.jar}"/>
</classpath>
</java>
</target>
<target name="sample.spreadsheet.worksheetdemo.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet WorksheetDemo sample">
<java fork="true" classname="${sample.spreadsheet.worksheetdemo.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password}"/>
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.worksheetdemo.jar}"/>
</classpath>
</java>
</target>
<target name="sample.spreadsheet.tabledemo.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet Table Demo sample">
<java fork="true" classname="${sample.spreadsheet.tabledemo.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password}"/>
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.tabledemo.jar}"/>
</classpath>
</java>
</target>
<target name="sample.spreadsheet.guidemo.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet GUIDemo sample">
<java fork="true" classname="${sample.spreadsheet.guidemo.main}">
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.guidemo.jar}"/>
</classpath>
</java>
</target>
<target name="sample.spreadsheet.indexclient.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet IndexClient sample">
<java fork="true" classname="${sample.spreadsheet.indexclient.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password} --author --worksheets --headers"/>
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.celldemo.jar}"/>
</classpath>
</java>
</target>
<target name="sample.spreadsheet.importclient.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet ImportClient sample">
<java fork="true" classname="${sample.spreadsheet.importclient.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password} --filename ${sample.spreadsheet.importclient.filename} --spreadsheet ${sample.spreadsheet.importclient.spreadsheet} --worksheet ${sample.spreadsheet.importclient.worksheet} --delimiter ,"/>
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.celldemo.jar}"/>
</classpath>
</java>
</target>
</project>
@@ -0,0 +1,76 @@
<project name="webmastertools" default="sample.webmastertools.build" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.webmastertools}"/>
<import file="${build_dir}/core.xml"/>
<!-- ===================================================================== -->
<!-- Build GData webmastertools library. -->
<!-- ===================================================================== -->
<property name="gdata-webmastertools.jar"
value="${build.jars}/gdata-webmastertools-${webmastertools.spec.version}.jar"/>
<property name="sample.webmastertools.basedir" value="${build}/sample/webmastertools"/>
<property name="sample.webmastertools.src.home" value="${sample.webmastertools.basedir}"/>
<property name="sample.webmastertools.build.classes" value="${sample.webmastertools.basedir}/classes"/>
<property name="sample.webmastertools.build.lib" value="${sample.webmastertools.basedir}/lib"/>
<property name="sample.webmastertools.jar" value="${sample.webmastertools.build.lib}/WebmasterToolsClient.jar"/>
<property name="sample.webmastertools.main" value="sample.webmastertools.WebmasterToolsClient"/>
<target name="sample.webmastertools.clean"
description="Delete old build and dist directories">
<delete dir="${sample.webmastertools.build.classes}"/>
</target>
<target name="sample.webmastertools.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="webmastertools"/>
<param name="template.service.version" value="${webmastertools.spec.version}"/>
</antcall>
</target>
<path id="sample.webmastertools.compile.classpath">
<path refid="build.service.core.classpath"/>
<pathelement location="${gdata-webmastertools.jar}"/>
<pathelement location="${sample-util.jar}"/>
</path>
<!-- samples build -->
<target name="sample.webmastertools.build"
depends="sample.webmastertools.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<mkdir dir="${sample.webmastertools.build.lib}"/>
<mkdir dir="${sample.webmastertools.build.classes}"/>
<javac srcdir="${sample.webmastertools.src.home}"
destdir="${sample.webmastertools.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.webmastertools.compile.classpath"/>
</javac>
<jar jarfile="${sample.webmastertools.jar}"
basedir="${sample.webmastertools.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.webmastertools.main}"/>
</manifest>
</jar>
</target>
<!-- samples run -->
<target name="sample.webmastertools.run"
depends="sample.webmastertools.build"
description="Runs the webmastertools sample">
<java fork="true" classname="${sample.webmastertools.main}">
<arg line="--username=${sample.credentials.username} --password=${sample.credentials.password}"/>
<classpath>
<path refid="sample.webmastertools.compile.classpath"/>
<path location="${sample.webmastertools.jar}"/>
</classpath>
</java>
</target>
</project>
+155
View File
@@ -0,0 +1,155 @@
<project name="youtube" default="build.youtube" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.core}"/>
<import file="${build_dir}/core.xml"/>
<!-- ===================================================================== -->
<!-- Build GData youtube library. -->
<!-- ===================================================================== -->
<property name="gdata-youtube.jar"
value="${build.jars}/gdata-youtube-${youtube.spec.version}.jar"/>
<!-- ===================================================================== -->
<!-- Build the GData Codesearch samples. -->
<!-- ===================================================================== -->
<!-- samples build Properties -->
<property name="sample.youtube.basedir"
value="${basedir}/sample/youtube"/>
<property name="sample.youtube.src.home"
value="${sample.youtube.basedir}"/>
<property name="sample.youtube.build.classes"
value="${sample.youtube.basedir}/classes"/>
<property name="sample.youtube.build.lib"
value="${sample.youtube.basedir}/lib"/>
<property name="sample.youtube.read.jar"
value="${sample.youtube.build.lib}/YouTubeReadonlyClient.jar"/>
<property name="sample.youtube.write.jar"
value="${sample.youtube.build.lib}/YouTubeWriteClient.jar"/>
<property name="sample.youtube.upload.jar"
value="${sample.youtube.build.lib}/YouTubeUploadClient.jar"/>
<property name="sample.youtube.partial.jar"
value="${sample.youtube.build.lib}/YouTubePartialDemo.jar"/>
<property name="sample.youtube.read.main"
value="sample.youtube.YouTubeReadonlyClient"/>
<property name="sample.youtube.write.main"
value="sample.youtube.YouTubeWriteClient"/>
<property name="sample.youtube.partial.main"
value="sample.youtube.YouTubePartialDemo"/>
<property name="sample.youtube.upload.main"
value="sample.youtube.YouTubeUploadClient"/>
<target name="sample.youtube.clean"
description="Delete old build and dist directories">
<delete dir="${sample.youtube.build.classes}"/>
</target>
<!-- dependency check -->
<target name="sample.youtube.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="youtube"/>
<param name="template.service.version" value="${youtube.spec.version}"/>
</antcall>
</target>
<!-- samples dependencies -->
<path id="sample.youtube.compile.classpath">
<path refid="build.service.media.classpath"/>
<pathelement location="${sample-util.jar}"/>
<pathelement location="${gdata-youtube.jar}"/>
</path>
<!-- samples build -->
<target name="sample.youtube.build"
depends="sample.youtube.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<mkdir dir="${sample.youtube.build.lib}"/>
<mkdir dir="${sample.youtube.build.classes}"/>
<javac srcdir="${sample.youtube.src.home}"
destdir="${sample.youtube.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.youtube.compile.classpath"/>
</javac>
<jar jarfile="${sample.youtube.read.jar}"
basedir="${sample.youtube.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.youtube.read.main}"/>
</manifest>
</jar>
<jar jarfile="${sample.youtube.write.jar}"
basedir="${sample.youtube.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.youtube.write.main}"/>
</manifest>
</jar>
<jar jarfile="${sample.youtube.partial.jar}"
basedir="${sample.youtube.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.youtube.partial.main}"/>
</manifest>
</jar>
<jar jarfile="${sample.youtube.upload.jar}"
basedir="${sample.youtube.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.youtube.upload.main}"/>
</manifest>
</jar>
</target>
<!-- samples run -->
<target name="sample.youtube.read.run"
depends="sample.youtube.build"
description="Runs the youtube read-only sample">
<java fork="true" classname="${sample.youtube.read.main}">
<classpath>
<path refid="sample.youtube.compile.classpath"/>
<path location="${sample.youtube.read.jar}"/>
</classpath>
</java>
</target>
<target name="sample.youtube.write.run"
depends="sample.youtube.build"
description="Runs the youtube read-write sample">
<java fork="true" classname="${sample.youtube.write.main}">
<arg line="-u ${sample.youtube.username} -p ${sample.youtube.password} -k ${sample.youtube.key}"/>
<classpath>
<path refid="sample.youtube.compile.classpath"/>
<path location="${sample.youtube.write.jar}"/>
</classpath>
</java>
</target>
<target name="sample.youtube.partial.run"
depends="sample.youtube.build"
description="Runs the youtube Partial Query/Patch demo">
<java fork="true" classname="${sample.youtube.partial.main}">
<arg line="-u ${sample.youtube.username} -p ${sample.youtube.password} -k ${sample.youtube.key}"/>
<classpath>
<path refid="sample.youtube.compile.classpath"/>
<path location="${sample.youtube.partial.jar}"/>
</classpath>
</java>
</target>
<target name="sample.youtube.upload.run"
depends="sample.youtube.build"
description="Runs the youtube resumable upload sample">
<java fork="true" classname="${sample.youtube.upload.main}">
<arg line="-u ${sample.youtube.username} -p ${sample.youtube.password} -k ${sample.youtube.key}"/>
<classpath>
<path refid="sample.youtube.compile.classpath"/>
<path location="${sample.youtube.upload.jar}"/>
</classpath>
</java>
</target>
</project>