I see. I was looking in the "ctakes-distribution/target" because that seemed to be where the binary files where (which I assumed were the final product of the build, having initially experienced ctakes as a "user" and never worked on a maven project before). Would you be willing to please explain a bit more about how to run the project after building it (non-IDE-based install) for someone with less maven and java experience (which I think may be my main confusion)?
On Mon, Mar 26, 2018 at 2:49 AM, Gandhi Rajan Natarajan < gandhi.natara...@arisglobal.com> wrote: > Hi Reed, > > I'm not sure whether I got your question right. But if you make any > changes in ctakes-gui module, the updated jar files will be available under > ' ctakes-gui\target' folder. > > Not sure what you are looking for under 'ctakes-distribution/target' > > Regards, > Gandhi > > -----Original Message----- > From: Reed Villanueva [mailto:villanuevar...@gmail.com] > Sent: Monday, March 26, 2018 3:02 AM > To: dev@ctakes.apache.org > Subject: How to change and build project source code? > > New user. Tried editing > ctakes-gui/src/main/java/org/apache/ctakes/gui/pipeline/MainPanel2.java > to look into potential bug that was supposedly resolved in > https://issues.apache.org/jira/browse/CTAKES-442 but appears to still be > causing error... > > > > log4j: Adding appender named [consoleAppender] to category [root]. > > > Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException > > at > > javax.swing.plaf.synth.SynthTableHeaderUI$HeaderRenderer.getTableCellR > > endererComponent(SynthTableHeaderUI.java:234) > > at > > org.apache.ctakes.gui.pipeline.MainPanel2.createWestPanel(MainPanel2.j > > ava:94) > > > > > > > in version 4.0.1. Yet when changing the code snippet to... > > > > > > > private JComponent createWestPanel() { > > final JTable fakeTable = new JTable(); > > LOGGER.info( "** DEBUG: fakeTable: " + fakeTable ); > > LOGGER.info( "** DEBUG: fakeTable: " + fakeTable ); > > final JTableHeader fakeHeader = fakeTable.getTableHeader(); > > LOGGER.info( "** DEBUG: fakeHeader: " + fakeHeader ); > > final Component header = fakeHeader.getDefaultRenderer() > > .getTableCellRendererComponent( fakeTable, > > > > "Available Pipe Bits", false, false, -1, -1 ); > > > > > > > trying to build with... > > > > > mvn --fail-at-end --errors --update-snapshots clean install sonar:sonar > > -DskipTests=true -Dsonar.scm.provider=svn -Dsonar.host.url= > > https://builds.apache.org/analysis > > > > > > > and extracting the binaries via... > > ➜ trunk cp > > ctakes-distribution/target/apache-ctakes-4.0.1-SNAPSHOT-bin.tar.gz > > ctakes-distribution/target/apache-ctakes-4.0.1-SNAPSHOT-bin.tar.gz.md5 > > ../ > > > > > (by the way, I explicitly show the steps I took only because I have never > worked on a maven project before so giving a chance for someone to point > out if I'm doing something wrong here), yet still seeing error > > log4j: Adding appender named [consoleAppender] to category [root]. > > > Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException > > at > > javax.swing.plaf.synth.SynthTableHeaderUI$HeaderRenderer.getTableCellR > > endererComponent(SynthTableHeaderUI.java:234) > > at > > org.apache.ctakes.gui.pipeline.MainPanel2.createWestPanel(MainPanel2.j > > ava:94) > > > > > > Notice it states the error is on line 94 as if the change that I > implemented is not actually affecting the code that is being used (yet > running > > > > > ➜ trunk find . -name 'MainPanel2.java' > > > > ./ctakes-gui/src/main/java/org/apache/ctakes/gui/pipeline/MainPanel2.java > > > > > > > in the trunk directory shows that this is the only place that that file > exists). > > Am I missing something here (never worked on a maven project before, so > I'm thinking that I may not be changing the right file here)? How can I > change the code so that it actually gets used in the compiled binaries? > Thanks > This email and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to whom they are addressed. > If you are not the named addressee you should not disseminate, distribute > or copy this e-mail. Please notify the sender or system manager by email > immediately if you have received this e-mail by mistake and delete this > e-mail from your system. If you are not the intended recipient you are > notified that disclosing, copying, distributing or taking any action in > reliance on the contents of this information is strictly prohibited and > against the law. >