# HG changeset patch # User indvdum (gotoindvdum[at]gmail[dot]com) # Date 1342396582 -14400 # Node ID 63f356432f75d997fc6fa5e9e94af0ccaeed4b35 # Parent e837ce78a1c7fd66e3396590149d768066cc5c8c Add submit project diff -r e837ce78a1c7 -r 63f356432f75 icfp-solver/src/main/java/ru/bosony/solvers/Solver.java --- a/icfp-solver/src/main/java/ru/bosony/solvers/Solver.java Mon Jul 16 02:22:14 2012 +0400 +++ b/icfp-solver/src/main/java/ru/bosony/solvers/Solver.java Mon Jul 16 03:56:22 2012 +0400 @@ -1,6 +1,7 @@ package ru.bosony.solvers; import java.io.BufferedWriter; +import java.io.IOException; import java.io.OutputStreamWriter; import ru.bosony.model.mine.Mine; @@ -20,11 +21,13 @@ writer = new BufferedWriter(new OutputStreamWriter(System.out)); } - public void start() { - + public void start() throws IOException { + // TODO solver + writer.write("A"); + writer.flush(); } - public static void main(String[] args) { + public static void main(String[] args) throws IOException { String map = ""; for (String arg : args) { map += arg + "\n"; diff -r e837ce78a1c7 -r 63f356432f75 icfp-submit/assembly/install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/icfp-submit/assembly/install Mon Jul 16 03:56:22 2012 +0400 @@ -0,0 +1,3 @@ +#!/bin/sh + +exit 0 diff -r e837ce78a1c7 -r 63f356432f75 icfp-submit/assembly/lifter --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/icfp-submit/assembly/lifter Mon Jul 16 03:56:22 2012 +0400 @@ -0,0 +1,8 @@ +#!/bin/sh + +for var in ./lib/*; do + classpath=$classpath:${var} +done + +java -classpath "$classpath" ru.bosony.solvers.Solver $* + diff -r e837ce78a1c7 -r 63f356432f75 icfp-submit/pom.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/icfp-submit/pom.xml Mon Jul 16 03:56:22 2012 +0400 @@ -0,0 +1,86 @@ + + + 4.0.0 + icfp-submit + icfp-submit + jar + icfp-submit + + ru.bosony.icfp-2012 + icfp-2012-all + 0.0.1.0-SNAPSHOT + + + + + maven-assembly-plugin + + + src/main/assembly/assembly.xml + + icfp-xxxxxxxx + + + + make-assembly + package + + single + + + + + + maven-antrun-plugin + + + install + + + + + + + + + + + + run + + + + + + + + + ru.bosony.icfp-2012 + icfp-solver + + + ru.bosony.icfp-2012 + icfp-solver + sources + + + ru.bosony.icfp-2012 + icfp-model + + + ru.bosony.icfp-2012 + icfp-model + sources + + + ru.bosony.icfp-2012 + icfp-interpreter + + + ru.bosony.icfp-2012 + icfp-interpreter + sources + + + diff -r e837ce78a1c7 -r 63f356432f75 icfp-submit/src/main/assembly/assembly.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/icfp-submit/src/main/assembly/assembly.xml Mon Jul 16 03:56:22 2012 +0400 @@ -0,0 +1,33 @@ + + + + + tar.gz + + false + + + assembly + + + * + + + + + + + false + lib + false + + + + false + src + false + + + diff -r e837ce78a1c7 -r 63f356432f75 pom.xml --- a/pom.xml Mon Jul 16 02:22:14 2012 +0400 +++ b/pom.xml Mon Jul 16 03:56:22 2012 +0400 @@ -35,6 +35,21 @@ + maven-source-plugin + + true + + + + generate-sources + + jar + + + + + + org.apache.maven.plugins maven-resources-plugin ${maven-resources-plugin.version} @@ -53,19 +68,43 @@ ru.bosony.icfp-2012 + icfp-model + ${project.version} + sources + + + ru.bosony.icfp-2012 icfp-interpreter ${project.version} ru.bosony.icfp-2012 + icfp-interpreter + ${project.version} + sources + + + ru.bosony.icfp-2012 icfp-solver ${project.version} ru.bosony.icfp-2012 + icfp-solver + ${project.version} + sources + + + ru.bosony.icfp-2012 icfp-submit ${project.version} + + ru.bosony.icfp-2012 + icfp-submit + ${project.version} + sources +