Changeset 3657 for print

Show
Ignore:
Timestamp:
11/17/10 08:06:05 (18 months ago)
Author:
jeichar
Message:

update documentation with new gradle paths

Location:
print/trunk
Files:
1 removed
1 modified

Legend:

Unmodified
Added
Removed
  • print/trunk/docs/installation.txt

    r3649 r3657  
    67671. Edit the development.ini file and add two lines like that to the [DEFAULT] section (change the strings "%....%" by something relevant):: 
    6868 
    69     print.jar = %MAPFISHDIR%/trunk/print-standalone/target/print-standalone.jar 
     69    print.jar = %MAPFISHDIR%/trunk/build/libs/print-standalone-%VERSION%.jar 
    7070    print.config = %PROJECT_DIR%/print/config.yaml 
    7171 
     
    102102In my system, tomcat is installed in **/var/lib/tomcat5.5** and the %WEBAPPS% directory is in **/var/lib/tomcat5.5/webapps**. 
    103103 
    104 1. copy the WAR file in your %WEBAPPS% directory. This is can be obtained from `%MAPFISH_DIR%/trunk/print-servlet/target/print-servlet-*.war` if you compiled the print module or you can get it from the `maven repository <http://dev.mapfish.org/maven/repository/org/mapfish/print/print-servlet/1.1/print-servlet-1.1.war>`_.  
     1041. copy the WAR file in your %WEBAPPS% directory. This is can be obtained from `%MAPFISH_DIR%/trunk/build/libs/print-servlet-*.war` if you compiled the print module or you can get it from the `maven repository <http://dev.mapfish.org/maven/repository/org/mapfish/print/print-servlet/1.1/print-servlet-1.1.war>`_.  
    1051052. Edit the config.yaml file in your `%WEAPPS%/print-servlet-*/` directory as documented in the `Print Module Server <server_side_configuration.html>`_ page.  
    1061063. If needed, edit the web.xml and log4j.properties files.  
     
    163163For debugging or calling from other environments, you can run the print module from the command line. 
    164164 
    165 Example of command (from the directory %MAPFISHDIR%/server/java/print/print-standalone): 
     165Examples are assumed to be ran from the directory %MAPFISHDIR%/server/java/print. 
     166 
     167The fastest way is to call to gradle to run the application.   
    166168 
    167169.. code-block:: java 
    168  
    169   java -Djava.awt.headless=true -cp target/print-standalone.jar org.mapfish.print.ShellMapPrinter --config=samples/config.yaml --spec=samples/spec.json --output=$HOME/print.pdf 
     170  ./gradlew run -Dconfig=samples/config.yaml -Dspec=samples/spec.json -Doutput=/tmp/print-out.pdf 
    170171 
    171172Help about the command line's option can be obtained like that: 
     
    173174.. code-block:: java 
    174175 
    175   java -Djava.awt.headless=true -cp target/print-standalone.jar org.mapfish.print.ShellMapPrinter 
     176./gradlew run 
     177 
     178If you have previously built you can run the existing jar using the following commands: 
     179 
     180.. code-block:: java 
     181 
     182  java -Djava.awt.headless=true -cp build/libs/print-standalone-%VERSION%.jar org.mapfish.print.ShellMapPrinter --config=samples/config.yaml --spec=samples/spec.json --output=$HOME/print.pdf 
     183 
     184Help about the command line's option can be obtained like that: 
     185 
     186.. code-block:: java 
     187 
     188  java -Djava.awt.headless=true -cp build/libs/print-standalone-%VERSION%.jar org.mapfish.print.ShellMapPrinter 
     189   
     190