Difference between revisions of "Development tips"

From OpenKM Documentation
Jump to: navigation, search
(Created page with 'We recommend downloading JBoss+OpenKM from SourceForge, remove OpenKM.war and develop with this JBoss server configuration. For better development we recommend not deploying Open…')
 
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
We recommend downloading JBoss+OpenKM from SourceForge, remove OpenKM.war and develop with this JBoss server configuration. For better development we recommend not deploying OpenKM.war file it's better setting in $JBOSS_HOME/server/default/deploy some alias to target/OpenKM folder:
+
* [[Development tips OpenKM 6.0]]
 
+
* [[Development tips OpenKM 5.1]]
 
+
* [[Development tips OpenKM 5.0]]
<center>[[File:Okm_dev_guide_011.jpeg‎|441px]]</center>
+
* [[Development tips OpenKM 4.0]] ( covers 4.1 too )
 
 
 
 
In case you're making strong changes in OpenKM UI ( GWT ) we recommend disabling pom compile directive
 
 
 
<source lang="xml">
 
<plugin>
 
    <groupId>org.codehaus.mojo</groupId>
 
        <artifactId>gwt-maven-plugin</artifactId>
 
        <version>1.1</version>
 
        <configuration>
 
            <runTarget>es.git.openkm.frontend.Main/index.html</runTarget>
 
        </configuration>
 
        <executions>
 
          <execution>
 
            <goals>
 
              <!-- <goal>compile</goal> -->
 
              <!-- <goal>generateAsync</goal>  -->
 
              <goal>test</goal>
 
            </goals>
 
          </execution>
 
        </executions>
 
    </plugin>
 
</source>
 
 
 
You might be interested in running frontend and backend GWT packaging from eclipse. Go to run configurations and add in maven build
 
 
 
 
 
<center>[[File:Okm_dev_guide_012.jpeg‎|800px]]</center>
 
 
 
 
 
<center>[[File:Okm_dev_guide_013.jpeg‎|800px]]</center>
 
 
 
 
 
To achieve a faster compile we use to development Firefox, uncommenting gecko line on file Main.gwt.xml GWT compilation only for gecko browser runs fine. Don't forget at finish to comment it and try application with IE or other browsers. Now are two files called Main.gwt.xml one for frontend and other to backend.
 
 
 
<source lang="xml">
 
<!-- Compile for Firefox only -->
 
<set-property name="user.agent" value="gecko"/>
 
</source>
 
  
 
[[Category: Developer Guide]]
 
[[Category: Developer Guide]]

Latest revision as of 15:14, 24 October 2012