[GSoC] Building changes into working deployement

Hi Dhis2,
I am currently trying to run some experiments on the DHIS2 Code base.
I made changes to the class App in package

package org.hisp.dhis.appmanager;

/**
 * @author Saptarshi
 */
public class App
    implements Serializable
{

The change was that I added an attribute named along with its get/set ers.

@JsonProperty
public String getTestVal() {
    return testVal;
}

public void setTestVal(String testVal) {
    this.testVal = testVal;
}

This is the class that is used to deserialize the manifest.webapp.

And then I debugged my controller at the renderApp function and tried to debug an instance of this class. But it did not show an attribute. Then I debugged this class itself and then I saw this message


I am suspecting that there is something is wrong with the way I am building the whole scenario. What I am running as a war is the dhis-web-portal project and debugging its app controller class. So I tried mvn clean compile on the dhis-api project. Then I tried it on the overall root project.

Followed by a mvn clean and mvn jetty:run-war at the dhis-we-portal project.

But still I cannot seem to get it built so that I can experiment on adding some features into the codebase.

What am I doing wrong here :(.

Thanks for your help in advance.

best regards,

Dehan de Croos

Corrrection,

Followed by a mvn compile and mvn jetty:run-war at the dhis-we-portal project.*

image

image

···

On 10 July 2016 at 11:31, Dehan De Croos dehandecroos@gmail.com wrote:

Hi Dhis2,
I am currently trying to run some experiments on the DHIS2 Code base.
I made changes to the class App in package

package org.hisp.dhis.appmanager;

/**
 * @author Saptarshi
 */
public class App
    implements Serializable
{

The change was that I added an attribute named along with its get/set ers.

@JsonProperty
public String getTestVal() {
    return testVal;
}

public void setTestVal(String testVal) {
    this.testVal = testVal;
}

This is the class that is used to deserialize the manifest.webapp.

And then I debugged my controller at the renderApp function and tried to debug an instance of this class. But it did not show an attribute. Then I debugged this class itself and then I saw this message

I am suspecting that there is something is wrong with the way I am building the whole scenario. What I am running as a war is the dhis-web-portal project and debugging its app controller class. So I tried mvn clean compile on the dhis-api project. Then I tried it on the overall root project.

Followed by a mvn clean and mvn jetty:run-war at the dhis-we-portal project.

But still I cannot seem to get it built so that I can experiment on adding some features into the codebase.

What am I doing wrong here :(.

Thanks for your help in advance.

best regards,

Dehan de Croos

best regards,

Dehan de Croos

The keyword is “mvn install” as in the .sh files at the root.
Changes started to reflect after running mvn install at the root project!

I guess it would be enough to do this at the relevant module that will be changed.

Thanks for your pointer to run the SH file at the root Mark.

image

image

···

On 10 July 2016 at 12:20, Dehan De Croos dehandecroos@gmail.com wrote:

Corrrection,

Followed by a mvn compile and mvn jetty:run-war at the dhis-we-portal project.*

best regards,

Dehan de Croos

best regards,

Dehan de Croos

On 10 July 2016 at 11:31, Dehan De Croos dehandecroos@gmail.com wrote:

Hi Dhis2,
I am currently trying to run some experiments on the DHIS2 Code base.
I made changes to the class App in package

package org.hisp.dhis.appmanager;

/**
 * @author Saptarshi
 */
public class App
    implements Serializable
{

The change was that I added an attribute named along with its get/set ers.

@JsonProperty
public String getTestVal() {
    return testVal;
}

public void setTestVal(String testVal) {
    this.testVal = testVal;
}

This is the class that is used to deserialize the manifest.webapp.

And then I debugged my controller at the renderApp function and tried to debug an instance of this class. But it did not show an attribute. Then I debugged this class itself and then I saw this message

I am suspecting that there is something is wrong with the way I am building the whole scenario. What I am running as a war is the dhis-web-portal project and debugging its app controller class. So I tried mvn clean compile on the dhis-api project. Then I tried it on the overall root project.

Followed by a mvn clean and mvn jetty:run-war at the dhis-we-portal project.

But still I cannot seem to get it built so that I can experiment on adding some features into the codebase.

What am I doing wrong here :(.

Thanks for your help in advance.

best regards,

Dehan de Croos