Skip to content

Commit

Permalink
moving the library/client side of the connector into its own repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Connolly committed Feb 6, 2012
0 parents commit e737821
Show file tree
Hide file tree
Showing 53 changed files with 7,508 additions and 0 deletions.
9 changes: 9 additions & 0 deletions com.buglabs.bug.swarm.client/.classpath
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/>
<classpathentry kind="output" path="bin"/>
</classpath>
28 changes: 28 additions & 0 deletions com.buglabs.bug.swarm.client/.project
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.buglabs.bug.swarm.client</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
14 changes: 14 additions & 0 deletions com.buglabs.bug.swarm.client/META-INF/MANIFEST.MF
@@ -0,0 +1,14 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: BUGswarm ReST Client
Bundle-SymbolicName: com.buglabs.bug.swarm.client
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: Bug Labs, Inc.
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package:
junit.framework;resolution:=optional,
org.codehaus.jackson,
org.codehaus.jackson.map,
org.touge.restclient;version="1.0"
Export-Package: com.buglabs.bug.swarm.client;version="0.3.0",
com.buglabs.bug.swarm.client.model;version="0.3.0"
204 changes: 204 additions & 0 deletions com.buglabs.bug.swarm.client/bin/Example.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions com.buglabs.bug.swarm.client/bin/README
@@ -0,0 +1 @@
The tests for restclient are now in bugswarm-connector project.
4 changes: 4 additions & 0 deletions com.buglabs.bug.swarm.client/build.properties
@@ -0,0 +1,4 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.
62 changes: 62 additions & 0 deletions com.buglabs.bug.swarm.client/build.xml
@@ -0,0 +1,62 @@
<?xml version="1.0"?>
<project name="com.buglabs.bug.swarm.client" basedir=".">
<!-- PROJECT CONSTANTS -->

<target name="build.jars" description="Package the java class files into a jar.">
<echo message="## PROJECT: ${ant.project.name} ## TARGET: build.jars" />

<property name="dist.jar.name" value="${ant.project.name}" />
<property name="manifest.location" location="${basedir}/META-INF/MANIFEST.MF"/>

<fail unless="distDirectory" message="distDirectory must be defined." />
<fail unless="buildDirectory" message="buildDirectory must be defined." />

<jar destfile="${distDirectory}/${dist.jar.name}.jar"
basedir="${buildDirectory}"
manifest="${manifest.location}">
<fileset dir="${buildDirectory}" excludes="**/*.java,build/**,**/.settings/**,**/build.xml/**,**/build.properties/**,**/.classpath,**/.project,src/**,test/**,junit-reports/**,.git/**,**.gitignore,**/.checkstyle,**/README.*,**/build*.sh,checkstyle-reports/**" />
<fileset dir="${basedir}" includes="images/**,includes/**,javascripts/**,stylesheets/**,templates/**" />
</jar>
</target>

<!-- target: test Run JUnit tests -->
<target name="test">
<echo message="## PROJECT: ${ant.project.name} ## TARGET: test" />
<fail unless="report.dir" message="Ant variable report.dir must be defined." />
<echo message="Generating test result output in ${report.dir}..." />
<junit printsummary="yes">
<classpath refid="bin.classpath" />
<sysproperty key="report.misc" value="${report.misc}" />
<formatter type="xml" />
<batchtest todir="${report.dir}">
<fileset dir="${report.src}">
<include name="**/*Test*.java" />
<exclude name="**/*OSGiTest*.java" />
</fileset>
</batchtest>
</junit>
</target>

<!-- PROJECT IMPORTS -->
<exec executable="/usr/bin/wget">
<arg line="-P ${base.build.dir}" />
<arg line="--no-check-certificate" />
<arg line="-nc" />
<arg line="https://github.com/downloads/buglabs/bug-osgi/common-osgi.xml" />
</exec>
<property name="common.ant.file" location="${base.build.dir}/common-osgi.xml" />
<import file="${common.ant.file}" />

<!-- JUnit tests -->
<property environment="env" />
<property name="report.misc" value="${env.TEST_HOST}" />
<echo message="report.misc is ${report.misc}">
</echo>
<property name="report.dir" location="junit-reports" />
<property name="report.src" location="test/" />

<!-- Checkstyle -->
<property name="checkstyle.config" location="${base.build.dir}/toolbox/checkstyle/buglabs_checks.xml" />
<property name="checkstyle.dir" location="checkstyle-reports" />
<property name="checkstyle.src" location="src/" />
</project>

0 comments on commit e737821

Please sign in to comment.