-
-
Save parker/9eebd91fcb57ea416c6a to your computer and use it in GitHub Desktop.
Example ivy.xml and build.xml for generating proctor groups
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="example-webapp" default="proctor-generate" basedir="."> | |
<target name="init" description="Resolve dependencies and set classpaths"> | |
<ivy:resolve/> | |
<ivy:cachepath pathid="compile.path" conf="compile"/> | |
<ivy:cachepath pathid="runtime.path" conf="runtime"/> | |
<ivy:cachepath pathid="test.path" conf="test"/> | |
<ivy:cachepath pathid="proctor.path" conf="proctor"/> | |
</target> | |
<!-- | |
--> | |
<target name="proctor-generate" depends="init"> | |
<mkdir dir="generated-src/java" /> | |
<taskdef name="proctor-gen" classname="com.indeed.proctor.consumer.gen.ant.TestGroupsGeneratorTask" classpathref="proctor.path" /> | |
<proctor-gen | |
input="src/resources/com/indeed/example/groups/ExampleGroups.json" | |
target="generated-src/java" | |
packageName="com.indeed.example.groups" | |
groupsClass="ExampleGroups" | |
groupsManagerClass="ExampleGroupsManager"/> | |
</target> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tests" : { | |
// background color test | |
"bgcolortst": { | |
"buckets":{ | |
"inactive":-1, | |
"altcolor1":0, | |
"altcolor2":1, | |
"altcolor3":2, | |
"altcolor4":3 | |
}, | |
"fallbackValue": -1, | |
"payload" : { | |
"type" : "stringValue" | |
} | |
} | |
}, | |
"providedContext": { | |
"country": "String", | |
"language": "String" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- $Id: ivy.xml 24273 2008-06-26 23:52:09Z jimmy $ --> | |
<ivy-module version="1.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:noNamespaceSchemaLocation="http://incubator.apache.org/ivy/schemas/ivy.xsd"> | |
<configurations defaultconfmapping="default->default(master)"> | |
<conf name="compile" extends="default"/> | |
<conf name="proctor" extends="compile"/> | |
</configurations> | |
<dependencies> | |
<dependency org="com.indeed" name="proctor-ant-plugin" rev="1.0-SNAPSHOT" conf="proctor->default" /> | |
</dependencies> | |
</ivy-module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment