Changeset 3397

Show
Ignore:
Timestamp:
03/08/10 17:37:45 (2 years ago)
Author:
jeichar
Message:

migrated to gradle for doing build

Location:
print/trunk
Files:
45 added
4 removed
1 modified
122 moved

Legend:

Unmodified
Added
Removed
  • print/trunk/README

    r1615 r3397  
    11Please read the documentation available here: 
    22http://trac.mapfish.org/trac/mapfish/wiki/PrintModuleDoc 
     3 
     4 
     5To build: 
     6 
     7Install Gradle (http://www.gradle.org/) 
     8 
     9Execute the following command(): 
     10  gradle 
     11 
     12This will build three artifacts:  print-servlet-xxx.war, print-lib.jar, print-standalone.jar 
     13 
     14To deploy: 
     15 
     16> gradle upload -DsshPassphrase=...  
  • print/trunk/src/test/java/integration/HeavyLoad.java

    r2431 r3397  
    1818 */ 
    1919 
    20 package org.mapfish.print.servlet; 
     20package integration; 
    2121 
    2222import org.apache.commons.httpclient.HttpClient; 
  • print/trunk/src/test/java/org/mapfish/print/PdfTestCase.java

    r1971 r3397  
    5454    protected void setUp() throws Exception { 
    5555        super.setUp(); 
    56         PJsonObject spec = MapPrinter.parseSpec(FileUtilities.readWholeTextFile(new File("../print-standalone/samples/spec.json"))); 
     56        PJsonObject spec = MapPrinter.parseSpec(FileUtilities.readWholeTextFile(new File("samples/spec.json"))); 
    5757        spec.getInternalObj().put("units", "meters"); 
    5858 
    5959        doc = new Document(PageSize.A4); 
    60         outFile = new FileOutputStream("target/" + getClass().getSimpleName() + "_" + getName() + ".pdf"); 
     60        String baseDir = PdfTestCase.class.getClassLoader().getResource(".").getFile(); 
     61        outFile = new FileOutputStream(baseDir + getClass().getSimpleName() + "_" + getName() + ".pdf"); 
    6162        writer = PdfWriter.getInstance(doc, outFile); 
    6263        writer.setFullCompression(); 
  • print/trunk/src/test/java/org/mapfish/print/config/ConfigTest.java

    r1976 r3397  
    3434 
    3535    public void testParse() throws FileNotFoundException { 
    36         Config config = Config.fromYaml(new File("../print-standalone/samples/config.yaml")); 
     36        Config config = Config.fromYaml(new File("samples/config.yaml")); 
    3737    } 
    3838