- Timestamp:
- 11/17/10 08:06:05 (18 months ago)
- Location:
- print/trunk
- Files:
-
- 1 removed
- 1 modified
-
cp-resources (deleted)
-
docs/installation.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
print/trunk/docs/installation.txt
r3649 r3657 67 67 1. Edit the development.ini file and add two lines like that to the [DEFAULT] section (change the strings "%....%" by something relevant):: 68 68 69 print.jar = %MAPFISHDIR%/trunk/ print-standalone/target/print-standalone.jar69 print.jar = %MAPFISHDIR%/trunk/build/libs/print-standalone-%VERSION%.jar 70 70 print.config = %PROJECT_DIR%/print/config.yaml 71 71 … … 102 102 In my system, tomcat is installed in **/var/lib/tomcat5.5** and the %WEBAPPS% directory is in **/var/lib/tomcat5.5/webapps**. 103 103 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>`_.104 1. 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>`_. 105 105 2. Edit the config.yaml file in your `%WEAPPS%/print-servlet-*/` directory as documented in the `Print Module Server <server_side_configuration.html>`_ page. 106 106 3. If needed, edit the web.xml and log4j.properties files. … … 163 163 For debugging or calling from other environments, you can run the print module from the command line. 164 164 165 Example of command (from the directory %MAPFISHDIR%/server/java/print/print-standalone): 165 Examples are assumed to be ran from the directory %MAPFISHDIR%/server/java/print. 166 167 The fastest way is to call to gradle to run the application. 166 168 167 169 .. 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 170 171 171 172 Help about the command line's option can be obtained like that: … … 173 174 .. code-block:: java 174 175 175 java -Djava.awt.headless=true -cp target/print-standalone.jar org.mapfish.print.ShellMapPrinter 176 ./gradlew run 177 178 If 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 184 Help 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
