Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mat-dev] Problems trying to build MAT from source...

Hi,

I tried to build mat on my machine but ran into a few build errors that
I wanted to pass on.  Would be great to get past them. ;)

1.  The first one is more of annoyance.  Every time I try running the
root project ./build.sh, it tries to download
eclipse-SDK-3.6-linux-gtk-ppc.tar.gz (which seems to take a long time
and probably contains more than we need).  The attached patch might help
a little.

      [get] Getting:
http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/eclipse-SDK-3.6-linux-gtk-ppc.tar.gz
      [get]
To: /home/smarlow/work/p2tool/eclipse-SDK-3.6-linux-gtk-ppc.tar.gz
.
.
.
   [delete] Deleting directory /home/smarlow/work/p2tool/eclipse
    [untar]
Expanding: /home/smarlow/work/p2tool/eclipse-SDK-3.6-linux-gtk-ppc.tar.gz into /home/smarlow/work/p2tool/eclipse

downloadDeltaPack:
      [get] Getting:
http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/eclipse-3.6-delta-pack.zip
      [get] To: /home/smarlow/work/p2tool/eclipse-3.6-delta-pack.zip
.
.
.
    [unzip]
Expanding: /home/smarlow/work/p2tool/eclipse-3.6-delta-pack.zip
into /home/smarlow/work/p2tool/eclipse-delta-pack
     [java] Generating metadata for ..
     [java] Generation completed with success [3 seconds].
.
.
.



2.  The build then downloads various artifacts and ends with an error
"Failed to execute goal
org.codehaus.mojo:findbugs-maven-plugin:2.3:findbugs (default-cli) on
project org.eclipse.mat.report".  I'm not sure why findbugs is having
trouble.

The build output from the (near) end part is here:
http://www.pastie.org/1356890


Also, I have the following environment settings:

ANT_HOME=/home/smarlow/tools/apache-ant-1.8.1
JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
M2_HOME=/home/smarlow/tools/apache-maven-3.0



Regards,
Scott

Index: plugins/org.eclipse.mat.ui/src/org/eclipse/mat/ui/snapshot/actions/OpenObjectByIdAction.java
===================================================================
--- plugins/org.eclipse.mat.ui/src/org/eclipse/mat/ui/snapshot/actions/OpenObjectByIdAction.java	(revision 966)
+++ plugins/org.eclipse.mat.ui/src/org/eclipse/mat/ui/snapshot/actions/OpenObjectByIdAction.java	(working copy)
@@ -65,10 +65,13 @@
         try
         {
             // Long.parseLong works only for positive hex
+System.out.println("OpenObjectByIdAction.retrieveObjectAndOpenPane value entered="+value);
+System.out.println("OpenObjectByIdAction.retrieveObjectAndOpenPane converted to decimal = "+new BigInteger(value.substring(2), 16).longValue());
             long objectAddress = new BigInteger(value.substring(2), 16).longValue();
             ISnapshot snapshot = ((ISnapshotEditorInput) editor.getPaneEditorInput()).getSnapshot();
             if (snapshot == null)
             {
+System.out.println("OpenObjectByIdAction.retrieveObjectAndOpenPane error getting heap dump");
                 errorMessage = Messages.OpenObjectByIdAction_ErrorGettingHeapDump;
             }
             else
@@ -76,22 +79,26 @@
                 int objectId = snapshot.mapAddressToId(objectAddress);
                 if (objectId < 0)
                 {
+System.out.println("OpenObjectByIdAction.retrieveObjectAndOpenPane error mapping mapAddressToId objectId=" + objectId);
                     errorMessage = MessageUtil.format(Messages.OpenObjectByIdAction_NoObjectWithAddress,
                                     new Object[] { value });
                 }
                 else
                 {
+System.out.println("OpenObjectByIdAction.retrieveObjectAndOpenPane invoke QueryExecution 'list_objects " + value+"'");
                     QueryExecution.executeCommandLine(editor, null, "list_objects " + value); //$NON-NLS-1$
                 }
             }
         }
         catch (NumberFormatException e)
         {
+System.out.println("OpenObjectByIdAction.retrieveObjectAndOpenPane error " + e.getMessage());
             // $JL-EXC$
             errorMessage = Messages.OpenObjectByIdAction_AddressIsNotHexNumber;
         }
         catch (SnapshotException e)
         {
+System.out.println("OpenObjectByIdAction.retrieveObjectAndOpenPane error " + e.getMessage());
             // $JL-EXC$
             errorMessage = MessageUtil.format(Messages.OpenObjectByIdAction_ErrorReadingObject, new Object[] { e
                             .getMessage() });
@@ -99,6 +106,7 @@
 
         if (errorMessage != null)
         {
+System.out.println("OpenObjectByIdAction.retrieveObjectAndOpenPane errormessage= " + errorMessage);
             MessageDialog.openError(PlatformUI.getWorkbench().getDisplay().getActiveShell(),
                             Messages.OpenObjectByIdAction_ErrorOpeningObject, errorMessage);
         }
Index: prepare-dep-repos.xml
===================================================================
--- prepare-dep-repos.xml	(revision 975)
+++ prepare-dep-repos.xml	(working copy)
@@ -29,7 +29,8 @@
 		<get 
 			src="http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/eclipse-SDK-3.6-linux-gtk-ppc.tar.gz";
 			dest="p2tool/eclipse-SDK-3.6-linux-gtk-ppc.tar.gz"
-			verbose="true"/>
+        verbose="true"
+        skipexisting="true" />
 
 	    	<delete dir="p2tool/eclipse"/>
 		<untar src="p2tool/eclipse-SDK-3.6-linux-gtk-ppc.tar.gz" dest="p2tool/eclipse" compression="gzip"/>
@@ -39,7 +40,8 @@
 		<get	
 			src="http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/eclipse-3.6-delta-pack.zip";
 			dest="p2tool/eclipse-3.6-delta-pack.zip"
-			verbose="true"/>
+        verbose="true"
+        skipexisting="true"/>
 		
 		<unzip src="p2tool/eclipse-3.6-delta-pack.zip" dest="p2tool/eclipse-delta-pack"/>
 	
@@ -61,7 +63,8 @@
 	<target name="downloadTestFramework" description="description" depends="downloadEclipse">
 		<get 
     		src="http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/eclipse-test-framework-3.6.zip"; 
-    		dest="p2tool/eclipse-test-framework.zip"/>
+        dest="p2tool/eclipse-test-framework.zip"
+        skipexisting="true"/>
     	<delete dir="p2tool/eclipse-test-framework"/>
 		<unzip src="p2tool/eclipse-test-framework.zip" dest="p2tool/eclipse-test-framework"/>
 
@@ -83,7 +86,8 @@
     <target name="downloadDTFJ" description="description" depends="downloadEclipse">
     	<get 
     		src="ftp://ftp.software.ibm.com/software/java/support/tools/dtfj/dtfj-updatesite.zip"; 
-    		dest="p2tool/dtfj-updatesite.zip"/>
+        dest="p2tool/dtfj-updatesite.zip"
+        skipexisting="true"/>
     	<delete dir="p2tool/dtfj-updatesite"/>
 		<unzip src="p2tool/dtfj-updatesite.zip" dest="p2tool/dtfj-updatesite"/>
     	<java jar="p2tool/eclipse/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar" fork="true" maxmemory="512m" failonerror="true">
Index: org.eclipse.mat.targetdef/mat-site.target
===================================================================
--- org.eclipse.mat.targetdef/mat-site.target	(revision 966)
+++ org.eclipse.mat.targetdef/mat-site.target	(working copy)
@@ -19,15 +19,15 @@
 </location>
 <location includeAllPlatforms="false" includeMode="slicer" type="InstallableUnit">
 <unit id="org.eclipse.test.feature.group" version="3.5.0.r20080925-7P7VBiBcJ99q9ZEO14C38"/>
-<repository location="%workspaceUrl%p2tool/eclipse-test-framework/repo"/>
+<repository location="file:/home/smarlow/work/p2tool/eclipse-test-framework/repo"/>
 </location>
 <location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
 <unit id="com.ibm.dtfj.feature.feature.group" version="1.4.0.201007061358"/>
-<repository location="%workspaceUrl%p2tool/dtfj-updatesite/repo"/>
+<repository location="file:/home/smarlow/work/p2tool/dtfj-updatesite/repo"/>
 </location>
 <location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
 <unit id="org.eclipse.equinox.executable.feature.group" version="3.4.0.v20100524-7M7K-FIhIez-egBko15H73"/>
-<repository location="%workspaceUrl%p2tool/eclipse-delta-pack/repo"/>
+<repository location="file:/home/smarlow/work/p2tool/eclipse-delta-pack/repo"/>
 </location>
 </locations>
 </target>

Back to the top