<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<!-- MHonArc v2.6.10 -->
	<channel>
		<title>dsdp-mtj-dev</title>
		<link>http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/maillist.html</link>
		<description>dsdp-mtj-dev</description>
		<language>en-us</language>
		<pubDate>Sun, 08 Nov 2009 13:50:23 GMT</pubDate>
		<lastBuildDate>Sun, 08 Nov 2009 13:50:23 GMT</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MHonArc RSS 2.0 RCFile</generator>
		<managingEditor>webmaster@eclipse.org (Webmaster)</managingEditor>
		<webMaster>webmaster@eclipse.org (Webmaster)</webMaster>
		<image>
			<title>dsdp-mtj-dev</title>
			<url>http://www.eclipse.org/eclipse.org-common/themes/Phoenix/images/eclipse_home_header.jpg</url>
			<link>http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/maillist.html</link>
		</image>
 

	<item>
		<title>Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes</title>
		<link>http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01448.html</link>
		<description> _______________________________________________ dsdp-mtj-dev mailing list dsdp-mtj-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev _______________________________________________ dsdp-mtj-dev mailing list dsdp-mtj-dev@xxxxxxxxxxx htt...</description>
		<content:encoded><![CDATA[<br>&#xA0; Hey David, <br><br>&#xA0; Yep! I think that this is the only solution. <br><br>&#xA0; Can you provide me a snippet of code that create a stub from a IJavaProject object. I tried to find something in google but I think I&#39;m doing the wrong question, every result is related to RMI stubs  :-\.<br>

<br>&#xA0; Thanks<br><br>&#xA0; Thiago Moreira<br><br><div class="gmail_quote">On Sun, Nov 8, 2009 at 9:46 AM, David Marques <span dir="ltr">&lt;<a href="mailto:dpsmarques@xxxxxxxxx">dpsmarques@xxxxxxxxx</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hi Thiago,<br><br>&#xA0;&#xA0;&#xA0; The only solution i could find was to add stubs to the source code. The thing is that MTJ needs to find the source for every class in order to match the source file with the entries on the build.properties file.<div class="im">

<br><br>Best Regards,<br><div>&#xA0;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms Researcher<br>

=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Eclipse Mobile Industry Working Group - <a rel="nofollow" href="http://www.eclipse.org/pulsar/" target="_blank">http://www.eclipse.org/pulsar/</a><br>

Eclipse Mobile Tools for the Java Platform - <a rel="nofollow" href="http://www.eclipse.org/dsdp/mtj/" target="_blank">http://www.eclipse.org/dsdp/mtj/</a><br></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br>

<div><br></div></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div class="im">

<hr size="1"><b><span style="font-weight: bold;">From:</span></b> Thiago Moreira (timba) &lt;<a href="mailto:tmoreira2020@xxxxxxxxx" target="_blank">tmoreira2020@xxxxxxxxx</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>

</div><b><span style="font-weight: bold;">Sent:</span></b> Sat, November 7,
 2009 12:50:18 PM<div><div></div><div class="h5"><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br></div></div></font><div><div></div><div class="h5">

<br>
<br>&#xA0; Hey David and all,<br><br>&#xA0; I double checked my problem and verified that the method PackageBuilderVisitor.findResourceOriginalPath will always return a EMPTY path for the classes that Floggy will embedded (net/sourceforge/floggy/persistence/<b>impl</b>). <br>



&#xA0; The only way that I think that is possible to fix it without changing MTJ is hacking the IJavaProject object. Stubs does something similar? The invocation that needs to return a not null object is this<br><br>IJavaElement jElement = jProject.findElement(sourcePath);<br>



<br>&#xA0; Makes sense?<br><br>&#xA0; Cheers<br><br>&#xA0; Thiago Moreira&#xA0; <br><br><div class="gmail_quote">On Fri, Nov 6, 2009 at 12:48 AM, Thiago Moreira (timba) <span dir="ltr">&lt;<a rel="nofollow" href="mailto:tmoreira2020@xxxxxxxxx" target="_blank">tmoreira2020@xxxxxxxxx</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>&#xA0; Hey David and all,<br><br>&#xA0; Is there another way to embedded *.class files in the final package in the Pulsar bundles? The thing is the classes stored in net/sourceforge/floggy/persistence/<b>impl</b> must not be visible to the developer. Thoughts?<br>




<br>&#xA0; Cheers<br><font color="#888888"><br>&#xA0; Thiago Moreira</font><div><div></div><div><br><br><br><div class="gmail_quote">On Thu, Nov 5, 2009 at 12:20 AM, Thiago Moreira (timba) <span dir="ltr">&lt;<a rel="nofollow" href="mailto:tmoreira2020@xxxxxxxxx" target="_blank">tmoreira2020@xxxxxxxxx</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>&#xA0; Hey David,<br><br>&#xA0; I tried what you suggested and it didn&#39;t work. Floggy weaver works exactly the way that you described, copying the classes before the package builder run.<br>




<br>&#xA0; Attached you will find our .project file that ensure the builders execution sequence.<br>
<br>&#xA0; Best<br><font color="#888888"><br>&#xA0; Thiago Moreira</font><div><div></div><div><br><br><div class="gmail_quote">On Wed, Nov 4, 2009 at 8:50 AM, David Marques <span dir="ltr">&lt;<a rel="nofollow" href="mailto:dpsmarques@xxxxxxxxx" target="_blank">dpsmarques@xxxxxxxxx</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hi Thiago,<br><br>&#xA0;&#xA0;&#xA0; I will try to set up my eclipse environment this week in order to try to help you on this. Have you tried creating an empty package (for example src/my/test) on your project and added it to the &lt;configuration&gt;.includes entry in your build.properties. Yor classes should be copied to the bin/my/test during the build process sometime before the package builder is run.<div>





<br><br>Best Regards,<br><div>&#xA0;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms
 Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);"><span>Eclipse Mobile Industry Working Group - <a href="http://www.eclipse.org/pulsar/" target="_blank">http://www.eclipse.org/pulsar/</a></span><br>

<span>



Eclipse Mobile Tools for the Java Platform - <a href="http://www.eclipse.org/dsdp/mtj/" target="_blank">http://www.eclipse.org/dsdp/mtj/</a></span><br></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br>





<div><br></div></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1">





<b><span style="font-weight: bold;">From:</span></b> Thiago Moreira
 (timba) &lt;<a rel="nofollow" href="mailto:tmoreira2020@xxxxxxxxx" target="_blank">tmoreira2020@xxxxxxxxx</a>&gt;<div><br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>





</div><b><span style="font-weight: bold;">Sent:</span></b> Tue, November 3, 2009 11:44:23 PM<div><div></div><div><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br>





</div></div></font><div><div></div><div><br>
<br>&#xA0; Hi David,<br><br>&#xA0; Regarding the build.properties I made a test with eclipse-pulsar-galileo-SR1-linux-gtk-x86_64 and once I add the classes that I want to embedded in final jar and save, my changes are wiped out from the build.properties! <br>







&#xA0; I also made the same test with another Pulsar bundle, don&#39;t remember the name/version, and got a NullPointerException at PackageBuilderVisitor.isOnBuildProperties. <br><br>&#xA0; Thanks in advance.<br><br>&#xA0; Thiago Moreira&#xA0; <br>








<br><div class="gmail_quote">On Fri, Oct 30, 2009 at 8:57 AM, David Marques <span dir="ltr">&lt;<a rel="nofollow" href="mailto:dpsmarques@xxxxxxxxx" target="_blank">dpsmarques@xxxxxxxxx</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hi Dan,<br><br>&#xA0;&#xA0;&#xA0; You haven&#39;t said anything about the build properties, so i assume you added the entries required for the package builder to include your generated class files into the app JAR right !? Follows some answers:<div>








<br><br>1) I&#39;m assuming this extra build before launching is intended... is this right ?<br></div>&#xA0;&#xA0;&#xA0; - Well, is it being invoked explicitly by MTJ code !? Auto builds are quite hard to presume, it sometimes runs for weird reasons :(<div>








<br><br>2) Is there something about the build I could detect, or hints on how to know if I need to re-build ?<br></div>&#xA0;&#xA0;&#xA0; - Well besides the resource deltas i think you should take a look at the build hooks extension point.<br>








<br>
3) Any other advice :)<br>&#xA0;&#xA0;&#xA0; - Let me know if it does not work still... I will try to find some time to help you on this on the weekend :)<div><br><br>Best Regards,<br><div>&#xA0;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br>








<span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);"><span>Eclipse Mobile Industry Working Group - <a rel="nofollow" href="http://www.eclipse.org/pulsar/" target="_blank">http://www.eclipse.org/pulsar/</a></span><br>





<span>


Eclipse Mobile Tools for the Java Platform - <a rel="nofollow" href="http://www.eclipse.org/dsdp/mtj/" target="_blank">http://www.eclipse.org/dsdp/mtj/</a></span><br></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br>








<div><br></div></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div>
<hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dan Murphy &lt;<a rel="nofollow" href="mailto:dgemurphy@xxxxxxxxx" target="_blank">dgemurphy@xxxxxxxxx</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>








</div><b><span style="font-weight: bold;">Sent:</span></b> Fri, October 30, 2009 7:04:20 AM<div><div></div><div><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br>








</div></div></font><div><div></div><div><br>
Hi David &amp; co,<br><br>I had a little luck last night and figured out what was going wrong, but would appreciate to know if this is expected behavior....<br><br>A little background... With Eclipse 3.4, MTJ 0.9 &amp; Floggy we had a number of reports of infinite build loops when build automatically was enabled. To get around this we put in a check to only do byte code weaving if a change was detected in a source folder.<br>









<br>What I&#39;m now seeing is that just before a midlet is launched a build is initiated... The Java builder compile the code, but since the build delta doesn&#39;t contain a source code change floggy&#39;s builder doesn&#39;t do anything. The preverification builder and package builder then pickup the new class file (that doesn&#39;t contain the floggy woven code) and launches... end result is that the class doesn&#39;t contain the additional bytecode needed to work.<br>









<br>To test this I removed the condition in the floggy builder and hey-presto it all worked. I didn&#39;t get an infinite build loop, however it didn&#39;t always happen in the past, so am a little concerned about leaving this out. I could change the conditional build, say to only build if a change to the output is detected but am thinking that things other than class files may be here also... I guess I could change to build only if a class file changes in the bin directory, since the preverfication builder outputs to the .mtj temp directory I should be safe from java-&gt;floggy-&gt;preverify-&gt;floggy loops (?) <br>









<br>So, a couple of Qs...<br>1) I&#39;m assuming this extra build before launching is intended... is this right ?<br>2) Is there something about the build I could detect, or hints on how to know if I need to re-build ?<br>









3) Any other advice :)<br><br>Thanks in advance,<br>Dan<br><br><div class="gmail_quote">2009/10/29 Dan Murphy <span dir="ltr">&lt;<a rel="nofollow" href="mailto:dgemurphy@xxxxxxxxx" target="_blank">dgemurphy@xxxxxxxxx</a>&gt;</span><br>








<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div>Hi David, thanks for the info. I&#39;ll have another try with the build.properties. When I tried manually changing this file it didn&#39;t seem to work. However that was with the 1.0 release so things may have changed since then.</div>









<div><br></div><div>All the best,</div><div><div>Dan<br><br>----- Sent&#xA0;<span>on the hoof from my phone ! -----</span></div></div><div><div></div><div><div><br>On 29 Oct 2009, at 12:53, David Marques &lt;<a rel="nofollow" href="mailto:dpsmarques@xxxxxxxxx" target="_blank">dpsmarques@xxxxxxxxx</a>&gt; wrote:<br>









<br></div><div></div><blockquote type="cite"><div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hello All,<br><br>&#xA0;&#xA0;&#xA0; The last builder for an MTJ project is the PackageBuilder. This builder is responsible to filter the content on the bin/ directory and package only the files/folders that match any &#39;include&#39; entry within the build.properties. As soon as the generated classes are copied into the bin/ folder before the package builder is run and an entry like net/sourceforge/floggy/ is in the include part of the build.properties it should work :)<br>









<br>Best Regards,<br><div>&#xA0;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms
 Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Eclipse Mobile Industry Working Group - <a rel="nofollow" href="http://www.eclipse.org/pulsar/" target="_blank"></a><span><a rel="nofollow" href="http://www.eclipse.org/pulsar/" target="_blank">http://www.eclipse.org/pulsar/</a></span><br>









Eclipse Mobile Tools for the Java Platform - <a rel="nofollow" href="http://www.eclipse.org/dsdp/mtj/" target="_blank"></a><span><a rel="nofollow" href="http://www.eclipse.org/dsdp/mtj/" target="_blank">http://www.eclipse.org/dsdp/mtj/</a></span><br>









</span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br><div><br></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">









<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dan Murphy
 &lt;<a rel="nofollow" href="mailto:dgemurphy@xxxxxxxxx" target="_blank">dgemurphy@xxxxxxxxx</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>









<b><span style="font-weight: bold;">Sent:</span></b> Thu, October 29, 2009 5:22:57 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br></font><br>









<div>Hi Thiago,</div><div>The reason I went for the jar approach was that creating stubs seemed likey to result in the stubs being stored in the users scm system, which I thought was best avoided.</div><div><br></div><div>









With the latest trunk, the weaver customised impl classes are being jar&#39;d and copied. The problem is that the weaver persistable classes are not being copied from the floggy temp directory back into the project bin directory... Either that or the bin directory needs a refresh.. Whatever the cause, the woven data classes are not apppearing in the jar used by the emulator.</div>









<div><br></div><div>I&#39;ll continue to have a look over lunch today</div><div><br></div><div>Cheers,</div><div>Dan</div><div><br>----- Sent&#xA0;<span>on the hoof from my phone ! -----</span></div><div><br>On 29 Oct 2009, at 01:54, &quot;Thiago Moreira (timba)&quot; &lt;<a rel="nofollow" href="mailto:tmoreira2020@xxxxxxxxx" target="_blank"></a><a rel="nofollow" href="mailto:tmoreira2020@xxxxxxxxx" target="_blank">tmoreira2020@xxxxxxxxx</a>&gt; wrote:<br>









<br></div><div></div><blockquote type="cite"><div><br>&#xA0; Hi all,<br><br>&#xA0; I would like bring this thread back to live: <a rel="nofollow" href="http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html" target="_blank"></a><span><span><span><a href="http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html" target="_blank">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html</a>. We still didn&#39;t fix it so I&#39;m here to ask more questions. </span></span></span><br>












<br>&#xA0; David, how can I build stubs like you said in your last comment? I made a search and found the below reference of stubs and pde, it is related to what you meant ?<br><br>&#xA0; <a rel="nofollow" href="http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html" target="_blank"></a><span><span><span><a href="http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html" target="_blank">http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html</a></span></span></span><br>












<br>&#xA0; Let me explain a little more how Floggy works, so maybe you guys can give us a better feedback<br><br>&#xA0; 1&#xBA; compiler finish its process<br>&#xA0; 2&#xBA; Floggy weaver start to analyze the bytecodes <br>&#xA0; 3&#xBA; Floggy weaver will for each class that implements Persistable add methods and fields in the class.<br>












&#xA0; 4&#xBA; Floggy weaver will drop off predefined classes into bin folder to the package net.sourceforge.floggy.persistence.impl. These classes doesn&#39;t have a java file pair.<br><br>&#xA0; Until the third step everything works fine since we have a correlated .java file for each .class file.<br>











<br>&#xA0; The problem is MTJ does not embedded the classes from the fourth step!<br><br>&#xA0; Any help is appreciated. Thanks in advance.<br><br>&#xA0; Thiago Moreira<br><br>&#xA0; <br><br>&#xA0; <br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>dsdp-mtj-dev mailing list</span><br><span><a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank"></a><a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a></span><br>









<span><a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank"></a><a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a></span><br>









</div></blockquote></div></div></div><br>

      </div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>dsdp-mtj-dev mailing list</span><br><span><a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a></span><br>









<span><a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a></span><br></div></blockquote></div></div></div></blockquote></div>








<br>
</div></div></div></div>

</div><br>

      </div><br>_______________________________________________<br>
dsdp-mtj-dev mailing list<br>
<a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a><br>
<a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a><br>
<br></blockquote></div><br>
</div></div></div></div>

</div><br>

      </div><br>_______________________________________________<br>
dsdp-mtj-dev mailing list<br>
<a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a><br>
<a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></div></div>

</div><br>



      </div><br>_______________________________________________<br>
dsdp-mtj-dev mailing list<br>
<a href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a><br>
<br></blockquote></div><br>
]]></content:encoded>
		<pubDate>Sun, 08 Nov 2009 13:41:32 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01448.html</guid>
		<author>tmoreira2020@xxxxxxx (Thiago Moreira (timba))</author>
	</item>
	<item>
		<title>Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes</title>
		<link>http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01447.html</link>
		<description> _______________________________________________ dsdp-mtj-dev mailing list dsdp-mtj-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev _______________________________________________ dsdp-mtj-dev mailing list dsdp-mtj-dev@xxxxxxxxxxx htt...</description>
		<content:encoded><![CDATA[<div style="font-family:verdana,helvetica,sans-serif;font-size:10pt">Hi Thiago,<br><br>&nbsp;&nbsp;&nbsp; The only solution i could find was to add stubs to the source code. The thing is that MTJ needs to find the source for every class in order to match the source file with the entries on the build.properties file.<br><br>Best Regards,<br><div>&nbsp;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><strong>David Marques</strong></span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Eclipse Mobile Industry Working Group - <a rel="nofollow"
 target="_blank" href="http://www.eclipse.org/pulsar/">http://www.eclipse.org/pulsar/</a><br>Eclipse Mobile Tools for the Java Platform - <a rel="nofollow" target="_blank" href="http://www.eclipse.org/dsdp/mtj/">http://www.eclipse.org/dsdp/mtj/</a><br></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br><div><br></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Thiago Moreira (timba) &lt;tmoreira2020@xxxxxxxxx&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;dsdp-mtj-dev@xxxxxxxxxxx&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Sat, November 7,
 2009 12:50:18 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br></font><br>
<br>&nbsp; Hey David and all,<br><br>&nbsp; I double checked my problem and verified that the method PackageBuilderVisitor.findResourceOriginalPath will always return a EMPTY path for the classes that Floggy will embedded (net/sourceforge/floggy/persistence/<b>impl</b>). <br>

&nbsp; The only way that I think that is possible to fix it without changing MTJ is hacking the IJavaProject object. Stubs does something similar? The invocation that needs to return a not null object is this<br><br>IJavaElement jElement = jProject.findElement(sourcePath);<br>

<br>&nbsp; Makes sense?<br><br>&nbsp; Cheers<br><br>&nbsp; Thiago Moreira&nbsp; <br><br><div class="gmail_quote">On Fri, Nov 6, 2009 at 12:48 AM, Thiago Moreira (timba) <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:tmoreira2020@xxxxxxxxx" target="_blank" href="mailto:tmoreira2020@xxxxxxxxx">tmoreira2020@xxxxxxxxx</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>&nbsp; Hey David and all,<br><br>&nbsp; Is there another way to embedded *.class files in the final package in the Pulsar bundles? The thing is the classes stored in net/sourceforge/floggy/persistence/<b>impl</b> must not be visible to the developer. Thoughts?<br>


<br>&nbsp; Cheers<br><font color="#888888"><br>&nbsp; Thiago Moreira</font><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On Thu, Nov 5, 2009 at 12:20 AM, Thiago Moreira (timba) <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:tmoreira2020@xxxxxxxxx" target="_blank" href="mailto:tmoreira2020@xxxxxxxxx">tmoreira2020@xxxxxxxxx</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>&nbsp; Hey David,<br><br>&nbsp; I tried what you suggested and it didn't work. Floggy weaver works exactly the way that you described, copying the classes before the package builder run.<br>


<br>&nbsp; Attached you will find our .project file that ensure the builders execution sequence.<br>
<br>&nbsp; Best<br><font color="#888888"><br>&nbsp; Thiago Moreira</font><div><div></div><div><br><br><div class="gmail_quote">On Wed, Nov 4, 2009 at 8:50 AM, David Marques <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:dpsmarques@xxxxxxxxx" target="_blank" href="mailto:dpsmarques@xxxxxxxxx">dpsmarques@xxxxxxxxx</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hi Thiago,<br><br>&nbsp;&nbsp;&nbsp; I will try to set up my eclipse environment this week in order to try to help you on this. Have you tried creating an empty package (for example src/my/test) on your project and added it to the &lt;configuration&gt;.includes entry in your build.properties. Yor classes should be copied to the bin/my/test during the build process sometime before the package builder is run.<div>



<br><br>Best Regards,<br><div>&nbsp;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms
 Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);"><span>Eclipse Mobile Industry Working Group - <a target="_blank" href="http://www.eclipse.org/pulsar/">http://www.eclipse.org/pulsar/</a></span><br><span>



Eclipse Mobile Tools for the Java Platform - <a target="_blank" href="http://www.eclipse.org/dsdp/mtj/">http://www.eclipse.org/dsdp/mtj/</a></span><br></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br>



<div><br></div></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1">



<b><span style="font-weight: bold;">From:</span></b> Thiago Moreira
 (timba) &lt;<a rel="nofollow" ymailto="mailto:tmoreira2020@xxxxxxxxx" target="_blank" href="mailto:tmoreira2020@xxxxxxxxx">tmoreira2020@xxxxxxxxx</a>&gt;<div><br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a rel="nofollow" ymailto="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>



</div><b><span style="font-weight: bold;">Sent:</span></b> Tue, November 3, 2009 11:44:23 PM<div><div></div><div><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br>



</div></div></font><div><div></div><div><br>
<br>&nbsp; Hi David,<br><br>&nbsp; Regarding the build.properties I made a test with eclipse-pulsar-galileo-SR1-linux-gtk-x86_64 and once I add the classes that I want to embedded in final jar and save, my changes are wiped out from the build.properties! <br>





&nbsp; I also made the same test with another Pulsar bundle, don't remember the name/version, and got a NullPointerException at PackageBuilderVisitor.isOnBuildProperties. <br><br>&nbsp; Thanks in advance.<br><br>&nbsp; Thiago Moreira&nbsp; <br>






<br><div class="gmail_quote">On Fri, Oct 30, 2009 at 8:57 AM, David Marques <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:dpsmarques@xxxxxxxxx" target="_blank" href="mailto:dpsmarques@xxxxxxxxx">dpsmarques@xxxxxxxxx</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hi Dan,<br><br>&nbsp;&nbsp;&nbsp; You haven't said anything about the build properties, so i assume you added the entries required for the package builder to include your generated class files into the app JAR right !? Follows some answers:<div>






<br><br>1) I'm assuming this extra build before launching is intended... is this right ?<br></div>&nbsp;&nbsp;&nbsp; - Well, is it being invoked explicitly by MTJ code !? Auto builds are quite hard to presume, it sometimes runs for weird reasons :(<div>






<br><br>2) Is there something about the build I could detect, or hints on how to know if I need to re-build ?<br></div>&nbsp;&nbsp;&nbsp; - Well besides the resource deltas i think you should take a look at the build hooks extension point.<br>






<br>
3) Any other advice :)<br>&nbsp;&nbsp;&nbsp; - Let me know if it does not work still... I will try to find some time to help you on this on the weekend :)<div><br><br>Best Regards,<br><div>&nbsp;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br>






<span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);"><span>Eclipse Mobile Industry Working Group - <a rel="nofollow" target="_blank" href="http://www.eclipse.org/pulsar/">http://www.eclipse.org/pulsar/</a></span><br>



<span>


Eclipse Mobile Tools for the Java Platform - <a rel="nofollow" target="_blank" href="http://www.eclipse.org/dsdp/mtj/">http://www.eclipse.org/dsdp/mtj/</a></span><br></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br>






<div><br></div></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div>
<hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dan Murphy &lt;<a rel="nofollow" ymailto="mailto:dgemurphy@xxxxxxxxx" target="_blank" href="mailto:dgemurphy@xxxxxxxxx">dgemurphy@xxxxxxxxx</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a rel="nofollow" ymailto="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>






</div><b><span style="font-weight: bold;">Sent:</span></b> Fri, October 30, 2009 7:04:20 AM<div><div></div><div><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br>






</div></div></font><div><div></div><div><br>
Hi David &amp; co,<br><br>I had a little luck last night and figured out what was going wrong, but would appreciate to know if this is expected behavior....<br><br>A little background... With Eclipse 3.4, MTJ 0.9 &amp; Floggy we had a number of reports of infinite build loops when build automatically was enabled. To get around this we put in a check to only do byte code weaving if a change was detected in a source folder.<br>







<br>What I'm now seeing is that just before a midlet is launched a build is initiated... The Java builder compile the code, but since the build delta doesn't contain a source code change floggy's builder doesn't do anything. The preverification builder and package builder then pickup the new class file (that doesn't contain the floggy woven code) and launches... end result is that the class doesn't contain the additional bytecode needed to work.<br>







<br>To test this I removed the condition in the floggy builder and hey-presto it all worked. I didn't get an infinite build loop, however it didn't always happen in the past, so am a little concerned about leaving this out. I could change the conditional build, say to only build if a change to the output is detected but am thinking that things other than class files may be here also... I guess I could change to build only if a class file changes in the bin directory, since the preverfication builder outputs to the .mtj temp directory I should be safe from java-&gt;floggy-&gt;preverify-&gt;floggy loops (?) <br>







<br>So, a couple of Qs...<br>1) I'm assuming this extra build before launching is intended... is this right ?<br>2) Is there something about the build I could detect, or hints on how to know if I need to re-build ?<br>







3) Any other advice :)<br><br>Thanks in advance,<br>Dan<br><br><div class="gmail_quote">2009/10/29 Dan Murphy <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:dgemurphy@xxxxxxxxx" target="_blank" href="mailto:dgemurphy@xxxxxxxxx">dgemurphy@xxxxxxxxx</a>&gt;</span><br>






<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div>Hi David, thanks for the info. I'll have another try with the build.properties. When I tried manually changing this file it didn't seem to work. However that was with the 1.0 release so things may have changed since then.</div>







<div><br></div><div>All the best,</div><div><div>Dan<br><br>----- Sent&nbsp;<span>on the hoof from my phone ! -----</span></div></div><div><div></div><div><div><br>On 29 Oct 2009, at 12:53, David Marques &lt;<a rel="nofollow" ymailto="mailto:dpsmarques@xxxxxxxxx" target="_blank" href="mailto:dpsmarques@xxxxxxxxx">dpsmarques@xxxxxxxxx</a>&gt; wrote:<br>







<br></div><div></div><blockquote type="cite"><div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hello All,<br><br>&nbsp;&nbsp;&nbsp; The last builder for an MTJ project is the PackageBuilder. This builder is responsible to filter the content on the bin/ directory and package only the files/folders that match any 'include' entry within the build.properties. As soon as the generated classes are copied into the bin/ folder before the package builder is run and an entry like net/sourceforge/floggy/ is in the include part of the build.properties it should work :)<br>







<br>Best Regards,<br><div>&nbsp;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms
 Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Eclipse Mobile Industry Working Group - <a rel="nofollow" target="_blank" href="http://www.eclipse.org/pulsar/"></a><span><a rel="nofollow" target="_blank" href="http://www.eclipse.org/pulsar/">http://www.eclipse.org/pulsar/</a></span><br>







Eclipse Mobile Tools for the Java Platform - <a rel="nofollow" target="_blank" href="http://www.eclipse.org/dsdp/mtj/"></a><span><a rel="nofollow" target="_blank" href="http://www.eclipse.org/dsdp/mtj/">http://www.eclipse.org/dsdp/mtj/</a></span><br>







</span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br><div><br></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">







<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dan Murphy
 &lt;<a rel="nofollow" ymailto="mailto:dgemurphy@xxxxxxxxx" target="_blank" href="mailto:dgemurphy@xxxxxxxxx">dgemurphy@xxxxxxxxx</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a rel="nofollow" ymailto="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>







<b><span style="font-weight: bold;">Sent:</span></b> Thu, October 29, 2009 5:22:57 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br></font><br>







<div>Hi Thiago,</div><div>The reason I went for the jar approach was that creating stubs seemed likey to result in the stubs being stored in the users scm system, which I thought was best avoided.</div><div><br></div><div>







With the latest trunk, the weaver customised impl classes are being jar'd and copied. The problem is that the weaver persistable classes are not being copied from the floggy temp directory back into the project bin directory... Either that or the bin directory needs a refresh.. Whatever the cause, the woven data classes are not apppearing in the jar used by the emulator.</div>







<div><br></div><div>I'll continue to have a look over lunch today</div><div><br></div><div>Cheers,</div><div>Dan</div><div><br>----- Sent&nbsp;<span>on the hoof from my phone ! -----</span></div><div><br>On 29 Oct 2009, at 01:54, "Thiago Moreira (timba)" &lt;<a rel="nofollow" ymailto="mailto:tmoreira2020@xxxxxxxxx" target="_blank" href="mailto:tmoreira2020@xxxxxxxxx"></a><a rel="nofollow" ymailto="mailto:tmoreira2020@xxxxxxxxx" target="_blank" href="mailto:tmoreira2020@xxxxxxxxx">tmoreira2020@xxxxxxxxx</a>&gt; wrote:<br>







<br></div><div></div><blockquote type="cite"><div><br>&nbsp; Hi all,<br><br>&nbsp; I would like bring this thread back to live: <a rel="nofollow" target="_blank" href="http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html"></a><span><span><span><a target="_blank" href="http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html</a>. We still didn't fix it so I'm here to ask more questions. </span></span></span><br>










<br>&nbsp; David, how can I build stubs like you said in your last comment? I made a search and found the below reference of stubs and pde, it is related to what you meant ?<br><br>&nbsp; <a rel="nofollow" target="_blank" href="http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html"></a><span><span><span><a target="_blank" href="http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html">http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html</a></span></span></span><br>










<br>&nbsp; Let me explain a little more how Floggy works, so maybe you guys can give us a better feedback<br><br>&nbsp; 1&#xBA; compiler finish its process<br>&nbsp; 2&#xBA; Floggy weaver start to analyze the bytecodes <br>&nbsp; 3&#xBA; Floggy weaver will for each class that implements Persistable add methods and fields in the class.<br>










&nbsp; 4&#xBA; Floggy weaver will drop off predefined classes into bin folder to the package net.sourceforge.floggy.persistence.impl. These classes doesn't have a java file pair.<br><br>&nbsp; Until the third step everything works fine since we have a correlated .java file for each .class file.<br>









<br>&nbsp; The problem is MTJ does not embedded the classes from the fourth step!<br><br>&nbsp; Any help is appreciated. Thanks in advance.<br><br>&nbsp; Thiago Moreira<br><br>&nbsp; <br><br>&nbsp; <br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>dsdp-mtj-dev mailing list</span><br><span><a rel="nofollow" ymailto="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx"></a><a rel="nofollow" ymailto="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a></span><br>







<span><a rel="nofollow" target="_blank" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev"></a><a rel="nofollow" target="_blank" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a></span><br>







</div></blockquote></div></div></div><br>

      </div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>dsdp-mtj-dev mailing list</span><br><span><a rel="nofollow" ymailto="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a></span><br>







<span><a rel="nofollow" target="_blank" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a></span><br></div></blockquote></div></div></div></blockquote></div>






<br>
</div></div></div></div>

</div><br>

      </div><br>_______________________________________________<br>
dsdp-mtj-dev mailing list<br>
<a rel="nofollow" ymailto="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a><br>
<a rel="nofollow" target="_blank" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a><br>
<br></blockquote></div><br>
</div></div></div></div>

</div><br>

      </div><br>_______________________________________________<br>
dsdp-mtj-dev mailing list<br>
<a rel="nofollow" ymailto="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a><br>
<a rel="nofollow" target="_blank" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div>
<!---->
</div><br>



      ]]></content:encoded>
		<pubDate>Sun, 08 Nov 2009 11:46:19 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01447.html</guid>
		<author>dpsmarques@xxxxxxx (David Marques)</author>
	</item>


	<item>
		<title>Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes</title>
		<link>http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01446.html</link>
		<description> _______________________________________________ dsdp-mtj-dev mailing list dsdp-mtj-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev _______________________________________________ dsdp-mtj-dev mailing list dsdp-mtj-dev@xxxxxxxxxxx htt...</description>
		<content:encoded><![CDATA[<br>&#xA0; Hey David and all,<br><br>&#xA0; I double checked my problem and verified that the method PackageBuilderVisitor.findResourceOriginalPath will always return a EMPTY path for the classes that Floggy will embedded (net/sourceforge/floggy/persistence/<b>impl</b>). <br>

&#xA0; The only way that I think that is possible to fix it without changing MTJ is hacking the IJavaProject object. Stubs does something similar? The invocation that needs to return a not null object is this<br><br>IJavaElement jElement = jProject.findElement(sourcePath);<br>

<br>&#xA0; Makes sense?<br><br>&#xA0; Cheers<br><br>&#xA0; Thiago Moreira&#xA0; <br><br><div class="gmail_quote">On Fri, Nov 6, 2009 at 12:48 AM, Thiago Moreira (timba) <span dir="ltr">&lt;<a href="mailto:tmoreira2020@xxxxxxxxx">tmoreira2020@xxxxxxxxx</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>&#xA0; Hey David and all,<br><br>&#xA0; Is there another way to embedded *.class files in the final package in the Pulsar bundles? The thing is the classes stored in net/sourceforge/floggy/persistence/<b>impl</b> must not be visible to the developer. Thoughts?<br>


<br>&#xA0; Cheers<br><font color="#888888"><br>&#xA0; Thiago Moreira</font><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On Thu, Nov 5, 2009 at 12:20 AM, Thiago Moreira (timba) <span dir="ltr">&lt;<a href="mailto:tmoreira2020@xxxxxxxxx" target="_blank">tmoreira2020@xxxxxxxxx</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>&#xA0; Hey David,<br><br>&#xA0; I tried what you suggested and it didn&#39;t work. Floggy weaver works exactly the way that you described, copying the classes before the package builder run.<br>


<br>&#xA0; Attached you will find our .project file that ensure the builders execution sequence.<br>
<br>&#xA0; Best<br><font color="#888888"><br>&#xA0; Thiago Moreira</font><div><div></div><div><br><br><div class="gmail_quote">On Wed, Nov 4, 2009 at 8:50 AM, David Marques <span dir="ltr">&lt;<a href="mailto:dpsmarques@xxxxxxxxx" target="_blank">dpsmarques@xxxxxxxxx</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hi Thiago,<br><br>&#xA0;&#xA0;&#xA0; I will try to set up my eclipse environment this week in order to try to help you on this. Have you tried creating an empty package (for example src/my/test) on your project and added it to the &lt;configuration&gt;.includes entry in your build.properties. Yor classes should be copied to the bin/my/test during the build process sometime before the package builder is run.<div>



<br><br>Best Regards,<br><div>&#xA0;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms
 Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Eclipse Mobile Industry Working Group - <a rel="nofollow" href="http://www.eclipse.org/pulsar/" target="_blank">http://www.eclipse.org/pulsar/</a><br>



Eclipse Mobile Tools for the Java Platform - <a rel="nofollow" href="http://www.eclipse.org/dsdp/mtj/" target="_blank">http://www.eclipse.org/dsdp/mtj/</a><br></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br>



<div><br></div></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1">



<b><span style="font-weight: bold;">From:</span></b> Thiago Moreira
 (timba) &lt;<a href="mailto:tmoreira2020@xxxxxxxxx" target="_blank">tmoreira2020@xxxxxxxxx</a>&gt;<div><br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>



</div><b><span style="font-weight: bold;">Sent:</span></b> Tue, November 3, 2009 11:44:23 PM<div><div></div><div><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br>



</div></div></font><div><div></div><div><br>
<br>&#xA0; Hi David,<br><br>&#xA0; Regarding the build.properties I made a test with eclipse-pulsar-galileo-SR1-linux-gtk-x86_64 and once I add the classes that I want to embedded in final jar and save, my changes are wiped out from the build.properties! <br>





&#xA0; I also made the same test with another Pulsar bundle, don&#39;t remember the name/version, and got a NullPointerException at PackageBuilderVisitor.isOnBuildProperties. <br><br>&#xA0; Thanks in advance.<br><br>&#xA0; Thiago Moreira&#xA0; <br>






<br><div class="gmail_quote">On Fri, Oct 30, 2009 at 8:57 AM, David Marques <span dir="ltr">&lt;<a rel="nofollow" href="mailto:dpsmarques@xxxxxxxxx" target="_blank">dpsmarques@xxxxxxxxx</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hi Dan,<br><br>&#xA0;&#xA0;&#xA0; You haven&#39;t said anything about the build properties, so i assume you added the entries required for the package builder to include your generated class files into the app JAR right !? Follows some answers:<div>






<br><br>1) I&#39;m assuming this extra build before launching is intended... is this right ?<br></div>&#xA0;&#xA0;&#xA0; - Well, is it being invoked explicitly by MTJ code !? Auto builds are quite hard to presume, it sometimes runs for weird reasons :(<div>






<br><br>2) Is there something about the build I could detect, or hints on how to know if I need to re-build ?<br></div>&#xA0;&#xA0;&#xA0; - Well besides the resource deltas i think you should take a look at the build hooks extension point.<br>






<br>
3) Any other advice :)<br>&#xA0;&#xA0;&#xA0; - Let me know if it does not work still... I will try to find some time to help you on this on the weekend :)<div><br><br>Best Regards,<br><div>&#xA0;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br>






<span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);"><span>Eclipse Mobile Industry Working Group - <a href="http://www.eclipse.org/pulsar/" target="_blank">http://www.eclipse.org/pulsar/</a></span><br>



<span>


Eclipse Mobile Tools for the Java Platform - <a href="http://www.eclipse.org/dsdp/mtj/" target="_blank">http://www.eclipse.org/dsdp/mtj/</a></span><br></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br>






<div><br></div></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><div>
<hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dan Murphy &lt;<a rel="nofollow" href="mailto:dgemurphy@xxxxxxxxx" target="_blank">dgemurphy@xxxxxxxxx</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>






</div><b><span style="font-weight: bold;">Sent:</span></b> Fri, October 30, 2009 7:04:20 AM<div><div></div><div><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br>






</div></div></font><div><div></div><div><br>
Hi David &amp; co,<br><br>I had a little luck last night and figured out what was going wrong, but would appreciate to know if this is expected behavior....<br><br>A little background... With Eclipse 3.4, MTJ 0.9 &amp; Floggy we had a number of reports of infinite build loops when build automatically was enabled. To get around this we put in a check to only do byte code weaving if a change was detected in a source folder.<br>







<br>What I&#39;m now seeing is that just before a midlet is launched a build is initiated... The Java builder compile the code, but since the build delta doesn&#39;t contain a source code change floggy&#39;s builder doesn&#39;t do anything. The preverification builder and package builder then pickup the new class file (that doesn&#39;t contain the floggy woven code) and launches... end result is that the class doesn&#39;t contain the additional bytecode needed to work.<br>







<br>To test this I removed the condition in the floggy builder and hey-presto it all worked. I didn&#39;t get an infinite build loop, however it didn&#39;t always happen in the past, so am a little concerned about leaving this out. I could change the conditional build, say to only build if a change to the output is detected but am thinking that things other than class files may be here also... I guess I could change to build only if a class file changes in the bin directory, since the preverfication builder outputs to the .mtj temp directory I should be safe from java-&gt;floggy-&gt;preverify-&gt;floggy loops (?) <br>







<br>So, a couple of Qs...<br>1) I&#39;m assuming this extra build before launching is intended... is this right ?<br>2) Is there something about the build I could detect, or hints on how to know if I need to re-build ?<br>







3) Any other advice :)<br><br>Thanks in advance,<br>Dan<br><br><div class="gmail_quote">2009/10/29 Dan Murphy <span dir="ltr">&lt;<a rel="nofollow" href="mailto:dgemurphy@xxxxxxxxx" target="_blank">dgemurphy@xxxxxxxxx</a>&gt;</span><br>






<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div>Hi David, thanks for the info. I&#39;ll have another try with the build.properties. When I tried manually changing this file it didn&#39;t seem to work. However that was with the 1.0 release so things may have changed since then.</div>







<div><br></div><div>All the best,</div><div><div>Dan<br><br>----- Sent&#xA0;<span>on the hoof from my phone ! -----</span></div></div><div><div></div><div><div><br>On 29 Oct 2009, at 12:53, David Marques &lt;<a rel="nofollow" href="mailto:dpsmarques@xxxxxxxxx" target="_blank">dpsmarques@xxxxxxxxx</a>&gt; wrote:<br>







<br></div><div></div><blockquote type="cite"><div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hello All,<br><br>&#xA0;&#xA0;&#xA0; The last builder for an MTJ project is the PackageBuilder. This builder is responsible to filter the content on the bin/ directory and package only the files/folders that match any &#39;include&#39; entry within the build.properties. As soon as the generated classes are copied into the bin/ folder before the package builder is run and an entry like net/sourceforge/floggy/ is in the include part of the build.properties it should work :)<br>







<br>Best Regards,<br><div>&#xA0;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms
 Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Eclipse Mobile Industry Working Group - <a rel="nofollow" href="http://www.eclipse.org/pulsar/" target="_blank"></a><span><a rel="nofollow" href="http://www.eclipse.org/pulsar/" target="_blank">http://www.eclipse.org/pulsar/</a></span><br>







Eclipse Mobile Tools for the Java Platform - <a rel="nofollow" href="http://www.eclipse.org/dsdp/mtj/" target="_blank"></a><span><a rel="nofollow" href="http://www.eclipse.org/dsdp/mtj/" target="_blank">http://www.eclipse.org/dsdp/mtj/</a></span><br>







</span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br><div><br></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">







<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dan Murphy
 &lt;<a rel="nofollow" href="mailto:dgemurphy@xxxxxxxxx" target="_blank">dgemurphy@xxxxxxxxx</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>







<b><span style="font-weight: bold;">Sent:</span></b> Thu, October 29, 2009 5:22:57 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br></font><br>







<div>Hi Thiago,</div><div>The reason I went for the jar approach was that creating stubs seemed likey to result in the stubs being stored in the users scm system, which I thought was best avoided.</div><div><br></div><div>







With the latest trunk, the weaver customised impl classes are being jar&#39;d and copied. The problem is that the weaver persistable classes are not being copied from the floggy temp directory back into the project bin directory... Either that or the bin directory needs a refresh.. Whatever the cause, the woven data classes are not apppearing in the jar used by the emulator.</div>







<div><br></div><div>I&#39;ll continue to have a look over lunch today</div><div><br></div><div>Cheers,</div><div>Dan</div><div><br>----- Sent&#xA0;<span>on the hoof from my phone ! -----</span></div><div><br>On 29 Oct 2009, at 01:54, &quot;Thiago Moreira (timba)&quot; &lt;<a rel="nofollow" href="mailto:tmoreira2020@xxxxxxxxx" target="_blank"></a><a rel="nofollow" href="mailto:tmoreira2020@xxxxxxxxx" target="_blank">tmoreira2020@xxxxxxxxx</a>&gt; wrote:<br>







<br></div><div></div><blockquote type="cite"><div><br>&#xA0; Hi all,<br><br>&#xA0; I would like bring this thread back to live: <a rel="nofollow" href="http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html" target="_blank"></a><span><span><a href="http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html" target="_blank">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html</a>. We still didn&#39;t fix it so I&#39;m here to ask more questions. </span></span><br>










<br>&#xA0; David, how can I build stubs like you said in your last comment? I made a search and found the below reference of stubs and pde, it is related to what you meant ?<br><br>&#xA0; <a rel="nofollow" href="http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html" target="_blank"></a><span><span><a href="http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html" target="_blank">http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html</a></span></span><br>










<br>&#xA0; Let me explain a little more how Floggy works, so maybe you guys can give us a better feedback<br><br>&#xA0; 1&#xBA; compiler finish its process<br>&#xA0; 2&#xBA; Floggy weaver start to analyze the bytecodes <br>&#xA0; 3&#xBA; Floggy weaver will for each class that implements Persistable add methods and fields in the class.<br>










&#xA0; 4&#xBA; Floggy weaver will drop off predefined classes into bin folder to the package net.sourceforge.floggy.persistence.impl. These classes doesn&#39;t have a java file pair.<br><br>&#xA0; Until the third step everything works fine since we have a correlated .java file for each .class file.<br>









<br>&#xA0; The problem is MTJ does not embedded the classes from the fourth step!<br><br>&#xA0; Any help is appreciated. Thanks in advance.<br><br>&#xA0; Thiago Moreira<br><br>&#xA0; <br><br>&#xA0; <br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>dsdp-mtj-dev mailing list</span><br><span><a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank"></a><a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a></span><br>







<span><a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank"></a><a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a></span><br>







</div></blockquote></div></div></div><br>

      </div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>dsdp-mtj-dev mailing list</span><br><span><a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a></span><br>







<span><a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a></span><br></div></blockquote></div></div></div></blockquote></div>






<br>
</div></div></div></div>

</div><br>

      </div><br>_______________________________________________<br>
dsdp-mtj-dev mailing list<br>
<a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a><br>
<a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a><br>
<br></blockquote></div><br>
</div></div></div></div>

</div><br>

      </div><br>_______________________________________________<br>
dsdp-mtj-dev mailing list<br>
<a href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
]]></content:encoded>
		<pubDate>Sat, 07 Nov 2009 15:50:39 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01446.html</guid>
		<author>tmoreira2020@xxxxxxx (Thiago Moreira (timba))</author>
	</item>


	<item>
		<title>Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes</title>
		<link>http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01445.html</link>
		<description> _______________________________________________ dsdp-mtj-dev mailing list dsdp-mtj-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev _______________________________________________ dsdp-mtj-dev mailing list dsdp-mtj-dev@xxxxxxxxxxx htt...</description>
		<content:encoded><![CDATA[<br>&#xA0; Hey David and all,<br><br>&#xA0; Is there another way to embedded *.class files in the final package in the Pulsar bundles? The thing is the classes stored in net/sourceforge/floggy/persistence/<b>impl</b> must not be visible to the developer. Thoughts?<br>

<br>&#xA0; Cheers<br><br>&#xA0; Thiago Moreira<br><br><br><div class="gmail_quote">On Thu, Nov 5, 2009 at 12:20 AM, Thiago Moreira (timba) <span dir="ltr">&lt;<a href="mailto:tmoreira2020@xxxxxxxxx">tmoreira2020@xxxxxxxxx</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>&#xA0; Hey David,<br><br>&#xA0; I tried what you suggested and it didn&#39;t work. Floggy weaver works exactly the way that you described, copying the classes before the package builder run.<br>

<br>&#xA0; Attached you will find our .project file that ensure the builders execution sequence.<br>
<br>&#xA0; Best<br><font color="#888888"><br>&#xA0; Thiago Moreira</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Wed, Nov 4, 2009 at 8:50 AM, David Marques <span dir="ltr">&lt;<a href="mailto:dpsmarques@xxxxxxxxx" target="_blank">dpsmarques@xxxxxxxxx</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hi Thiago,<br><br>&#xA0;&#xA0;&#xA0; I will try to set up my eclipse environment this week in order to try to help you on this. Have you tried creating an empty package (for example src/my/test) on your project and added it to the &lt;configuration&gt;.includes entry in your build.properties. Yor classes should be copied to the bin/my/test during the build process sometime before the package builder is run.<div>


<br><br>Best Regards,<br><div>&#xA0;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms
 Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Eclipse Mobile Industry Working Group - <a rel="nofollow" href="http://www.eclipse.org/pulsar/" target="_blank">http://www.eclipse.org/pulsar/</a><br>


Eclipse Mobile Tools for the Java Platform - <a rel="nofollow" href="http://www.eclipse.org/dsdp/mtj/" target="_blank">http://www.eclipse.org/dsdp/mtj/</a><br></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br>


<div><br></div></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1">


<b><span style="font-weight: bold;">From:</span></b> Thiago Moreira
 (timba) &lt;<a href="mailto:tmoreira2020@xxxxxxxxx" target="_blank">tmoreira2020@xxxxxxxxx</a>&gt;<div><br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>


</div><b><span style="font-weight: bold;">Sent:</span></b> Tue, November 3, 2009 11:44:23 PM<div><div></div><div><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br>


</div></div></font><div><div></div><div><br>
<br>&#xA0; Hi David,<br><br>&#xA0; Regarding the build.properties I made a test with eclipse-pulsar-galileo-SR1-linux-gtk-x86_64 and once I add the classes that I want to embedded in final jar and save, my changes are wiped out from the build.properties! <br>




&#xA0; I also made the same test with another Pulsar bundle, don&#39;t remember the name/version, and got a NullPointerException at PackageBuilderVisitor.isOnBuildProperties. <br><br>&#xA0; Thanks in advance.<br><br>&#xA0; Thiago Moreira&#xA0; <br>





<br><div class="gmail_quote">On Fri, Oct 30, 2009 at 8:57 AM, David Marques <span dir="ltr">&lt;<a rel="nofollow" href="mailto:dpsmarques@xxxxxxxxx" target="_blank">dpsmarques@xxxxxxxxx</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hi Dan,<br><br>&#xA0;&#xA0;&#xA0; You haven&#39;t said anything about the build properties, so i assume you added the entries required for the package builder to include your generated class files into the app JAR right !? Follows some answers:<div>





<br><br>1) I&#39;m assuming this extra build before launching is intended... is this right ?<br></div>&#xA0;&#xA0;&#xA0; - Well, is it being invoked explicitly by MTJ code !? Auto builds are quite hard to presume, it sometimes runs for weird reasons :(<div>





<br><br>2) Is there something about the build I could detect, or hints on how to know if I need to re-build ?<br></div>&#xA0;&#xA0;&#xA0; - Well besides the resource deltas i think you should take a look at the build hooks extension point.<br>





<br>
3) Any other advice :)<br>&#xA0;&#xA0;&#xA0; - Let me know if it does not work still... I will try to find some time to help you on this on the weekend :)<div><br><br>Best Regards,<br><div>&#xA0;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br>





<span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);"><span>Eclipse Mobile Industry Working Group - <a href="http://www.eclipse.org/pulsar/" target="_blank">http://www.eclipse.org/pulsar/</a></span><br>


<span>


Eclipse Mobile Tools for the Java Platform - <a href="http://www.eclipse.org/dsdp/mtj/" target="_blank">http://www.eclipse.org/dsdp/mtj/</a></span><br></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br>





<div><br></div></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div>
<hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dan Murphy &lt;<a rel="nofollow" href="mailto:dgemurphy@xxxxxxxxx" target="_blank">dgemurphy@xxxxxxxxx</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>





</div><b><span style="font-weight: bold;">Sent:</span></b> Fri, October 30, 2009 7:04:20 AM<div><div></div><div><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br>





</div></div></font><div><div></div><div><br>
Hi David &amp; co,<br><br>I had a little luck last night and figured out what was going wrong, but would appreciate to know if this is expected behavior....<br><br>A little background... With Eclipse 3.4, MTJ 0.9 &amp; Floggy we had a number of reports of infinite build loops when build automatically was enabled. To get around this we put in a check to only do byte code weaving if a change was detected in a source folder.<br>






<br>What I&#39;m now seeing is that just before a midlet is launched a build is initiated... The Java builder compile the code, but since the build delta doesn&#39;t contain a source code change floggy&#39;s builder doesn&#39;t do anything. The preverification builder and package builder then pickup the new class file (that doesn&#39;t contain the floggy woven code) and launches... end result is that the class doesn&#39;t contain the additional bytecode needed to work.<br>






<br>To test this I removed the condition in the floggy builder and hey-presto it all worked. I didn&#39;t get an infinite build loop, however it didn&#39;t always happen in the past, so am a little concerned about leaving this out. I could change the conditional build, say to only build if a change to the output is detected but am thinking that things other than class files may be here also... I guess I could change to build only if a class file changes in the bin directory, since the preverfication builder outputs to the .mtj temp directory I should be safe from java-&gt;floggy-&gt;preverify-&gt;floggy loops (?) <br>






<br>So, a couple of Qs...<br>1) I&#39;m assuming this extra build before launching is intended... is this right ?<br>2) Is there something about the build I could detect, or hints on how to know if I need to re-build ?<br>






3) Any other advice :)<br><br>Thanks in advance,<br>Dan<br><br><div class="gmail_quote">2009/10/29 Dan Murphy <span dir="ltr">&lt;<a rel="nofollow" href="mailto:dgemurphy@xxxxxxxxx" target="_blank">dgemurphy@xxxxxxxxx</a>&gt;</span><br>





<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div>Hi David, thanks for the info. I&#39;ll have another try with the build.properties. When I tried manually changing this file it didn&#39;t seem to work. However that was with the 1.0 release so things may have changed since then.</div>






<div><br></div><div>All the best,</div><div><div>Dan<br><br>----- Sent&#xA0;<span>on the hoof from my phone ! -----</span></div></div><div><div></div><div><div><br>On 29 Oct 2009, at 12:53, David Marques &lt;<a rel="nofollow" href="mailto:dpsmarques@xxxxxxxxx" target="_blank">dpsmarques@xxxxxxxxx</a>&gt; wrote:<br>






<br></div><div></div><blockquote type="cite"><div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hello All,<br><br>&#xA0;&#xA0;&#xA0; The last builder for an MTJ project is the PackageBuilder. This builder is responsible to filter the content on the bin/ directory and package only the files/folders that match any &#39;include&#39; entry within the build.properties. As soon as the generated classes are copied into the bin/ folder before the package builder is run and an entry like net/sourceforge/floggy/ is in the include part of the build.properties it should work :)<br>






<br>Best Regards,<br><div>&#xA0;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms
 Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Eclipse Mobile Industry Working Group - <a rel="nofollow" href="http://www.eclipse.org/pulsar/" target="_blank"></a><span><a rel="nofollow" href="http://www.eclipse.org/pulsar/" target="_blank">http://www.eclipse.org/pulsar/</a></span><br>






Eclipse Mobile Tools for the Java Platform - <a rel="nofollow" href="http://www.eclipse.org/dsdp/mtj/" target="_blank"></a><span><a rel="nofollow" href="http://www.eclipse.org/dsdp/mtj/" target="_blank">http://www.eclipse.org/dsdp/mtj/</a></span><br>






</span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br><div><br></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">






<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dan Murphy
 &lt;<a rel="nofollow" href="mailto:dgemurphy@xxxxxxxxx" target="_blank">dgemurphy@xxxxxxxxx</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>






<b><span style="font-weight: bold;">Sent:</span></b> Thu, October 29, 2009 5:22:57 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br></font><br>






<div>Hi Thiago,</div><div>The reason I went for the jar approach was that creating stubs seemed likey to result in the stubs being stored in the users scm system, which I thought was best avoided.</div><div><br></div><div>






With the latest trunk, the weaver customised impl classes are being jar&#39;d and copied. The problem is that the weaver persistable classes are not being copied from the floggy temp directory back into the project bin directory... Either that or the bin directory needs a refresh.. Whatever the cause, the woven data classes are not apppearing in the jar used by the emulator.</div>






<div><br></div><div>I&#39;ll continue to have a look over lunch today</div><div><br></div><div>Cheers,</div><div>Dan</div><div><br>----- Sent&#xA0;<span>on the hoof from my phone ! -----</span></div><div><br>On 29 Oct 2009, at 01:54, &quot;Thiago Moreira (timba)&quot; &lt;<a rel="nofollow" href="mailto:tmoreira2020@xxxxxxxxx" target="_blank"></a><a rel="nofollow" href="mailto:tmoreira2020@xxxxxxxxx" target="_blank">tmoreira2020@xxxxxxxxx</a>&gt; wrote:<br>






<br></div><div></div><blockquote type="cite"><div><br>&#xA0; Hi all,<br><br>&#xA0; I would like bring this thread back to live: <a rel="nofollow" href="http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html" target="_blank"></a><span><span><a href="http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html" target="_blank">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html</a>. We still didn&#39;t fix it so I&#39;m here to ask more questions. </span></span><br>









<br>&#xA0; David, how can I build stubs like you said in your last comment? I made a search and found the below reference of stubs and pde, it is related to what you meant ?<br><br>&#xA0; <a rel="nofollow" href="http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html" target="_blank"></a><span><span><a href="http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html" target="_blank">http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html</a></span></span><br>









<br>&#xA0; Let me explain a little more how Floggy works, so maybe you guys can give us a better feedback<br><br>&#xA0; 1&#xBA; compiler finish its process<br>&#xA0; 2&#xBA; Floggy weaver start to analyze the bytecodes <br>&#xA0; 3&#xBA; Floggy weaver will for each class that implements Persistable add methods and fields in the class.<br>









&#xA0; 4&#xBA; Floggy weaver will drop off predefined classes into bin folder to the package net.sourceforge.floggy.persistence.impl. These classes doesn&#39;t have a java file pair.<br><br>&#xA0; Until the third step everything works fine since we have a correlated .java file for each .class file.<br>








<br>&#xA0; The problem is MTJ does not embedded the classes from the fourth step!<br><br>&#xA0; Any help is appreciated. Thanks in advance.<br><br>&#xA0; Thiago Moreira<br><br>&#xA0; <br><br>&#xA0; <br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>dsdp-mtj-dev mailing list</span><br><span><a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank"></a><a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a></span><br>






<span><a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank"></a><a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a></span><br>






</div></blockquote></div></div></div><br>

      </div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>dsdp-mtj-dev mailing list</span><br><span><a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a></span><br>






<span><a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a></span><br></div></blockquote></div></div></div></blockquote></div>





<br>
</div></div></div></div>

</div><br>

      </div><br>_______________________________________________<br>
dsdp-mtj-dev mailing list<br>
<a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a><br>
<a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a><br>
<br></blockquote></div><br>
</div></div></div></div>

</div><br>

      </div><br>_______________________________________________<br>
dsdp-mtj-dev mailing list<br>
<a href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>
]]></content:encoded>
		<pubDate>Fri, 06 Nov 2009 02:48:45 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01445.html</guid>
		<author>tmoreira2020@xxxxxxx (Thiago Moreira (timba))</author>
	</item>
	<item>
		<title>Re: [dsdp-mtj-dev] New CQ for upgrading antenna.preprocessor to	version 1.3</title>
		<link>http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01444.html</link>
		<description> </description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="#ffffff" style="background-color: #ffffff; color: #000000; "><font color="#000000">



Thanks Diego!<br>
<br>
On 11/5/09 3:59 PM, Diego Madruga Sandin wrote:
<blockquote
 cite=""
 type="cite">Hi,<br>
  <br>
A new CQ (<a moz-do-not-send="true"
 href="ttps://dev.eclipse.org/ipzilla/show_bug.cgi?id=3594">3594</a>)
was opened to track the request to upgrade<b> antenna.preprocessor</b>
to version <b>1.3</b>. <br>
  <br>
The newer version includes the following changes:
  <ul>
    <li>changed include behavior to inherit changes made by included
file.</li>
    <li>added a NOP #preprocess directive for compatibility with
blackberry ant tools.</li>
  </ul>
Regards,<br>
Diego<br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
dsdp-mtj-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a>
<a class="moz-txt-link-freetext" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a>
  </pre>
</blockquote>


</font></td></tr></table>]]></content:encoded>
		<pubDate>Thu, 05 Nov 2009 22:08:02 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01444.html</guid>
		<author>craigjunk@xxxxxxx (Craig Setera)</author>
	</item>
	<item>
		<title>[dsdp-mtj-dev] New CQ for upgrading antenna.preprocessor to version	1.3</title>
		<link>http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01443.html</link>
		<description>Hi,A new CQ (3594) was opened to track the request to upgrade antenna.preprocessor to version 1.3. The newer version includes the following changes: changed include behavior to inherit changes made by included file.added a NOP #preprocess directive for com...</description>
		<content:encoded><![CDATA[Hi,<br><br>A new CQ (<a href="ttps://dev.eclipse.org/ipzilla/show_bug.cgi?id=3594">3594</a>) was opened to track the request to upgrade<b> antenna.preprocessor</b> to version <b>1.3</b>. <br><br>The newer version includes the following changes:
                <ul><li>changed include behavior to inherit changes made by included file.</li><li>added a NOP #preprocess directive for compatibility with blackberry ant tools.</li></ul>Regards,<br>Diego<br>
]]></content:encoded>
		<pubDate>Thu, 05 Nov 2009 21:59:36 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01443.html</guid>
		<author>diegosandin@xxxxxxx (Diego Madruga Sandin)</author>
	</item>
	<item>
		<title>Re: [dsdp-mtj-dev] Project meta data is out of date for dsdp.mtj</title>
		<link>http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01442.html</link>
		<description> </description>
		<content:encoded><![CDATA[Hi,<br><br>I&#39;ve updated the release &quot;1.0.1&quot; metadata to <b>completed</b>.<br><br>Diego<br><br><div class="gmail_quote">On Thu, Nov 5, 2009 at 2:00 AM, portal on behalf of emo <span dir="ltr">&lt;<a href="mailto:emo@xxxxxxxxxxx">emo@xxxxxxxxxxx</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Christian,<br>
Projects are required to keep meta data up to date using the MyFoundation<br>
Portal (<a href="http://portal.eclipse.org/" target="_blank">http://portal.eclipse.org/</a>). &#xA0;The following problems were found<br>
with this project&#39;s meta-data:<br>
<br>
* The date for release &quot;1.0.1&quot; is in the past, but the release is not<br>
marked as completed. If it is completed, it should be marked as completed;<br>
if it has been postponed, it should be given a new target date.<br>
* There is no next/future release of this project. All Eclipse projects<br>
must have a &quot;next release&quot; planned and scheduled.<br>
<br>
_______________________________________________<br>
dsdp-mtj-dev mailing list<br>
<a href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a><br>
</blockquote></div><br>
]]></content:encoded>
		<pubDate>Thu, 05 Nov 2009 21:28:30 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01442.html</guid>
		<author>diegosandin@xxxxxxx (Diego Madruga Sandin)</author>
	</item>
	<item>
		<title>[dsdp-mtj-dev] Project meta data is out of date for dsdp.mtj</title>
		<link>http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01441.html</link>
		<description>Christian, Projects are required to keep meta data up to date using the MyFoundation Portal (http://portal.eclipse.org/). The following problems were found with this project's meta-data: * The date for release &amp;quot;1.0.1&amp;quot; is in the past, but the release is not...</description>
		<content:encoded><![CDATA[<pre>Christian,
Projects are required to keep meta data up to date using the MyFoundation
Portal (<a  href="http://portal.eclipse.org/">http://portal.eclipse.org/</a>).  The following problems were found
with this project's meta-data:

* The date for release &quot;1.0.1&quot; is in the past, but the release is not
marked as completed. If it is completed, it should be marked as completed;
if it has been postponed, it should be given a new target date.
* There is no next/future release of this project. All Eclipse projects
must have a &quot;next release&quot; planned and scheduled.


</pre>]]></content:encoded>
		<pubDate>Thu, 05 Nov 2009 05:00:19 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01441.html</guid>
		<author>emo@xxxxxxx (portal on behalf of emo)</author>
	</item>


	<item>
		<title>Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes</title>
		<link>http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01440.html</link>
		<description> _______________________________________________ dsdp-mtj-dev mailing list dsdp-mtj-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev _______________________________________________ dsdp-mtj-dev mailing list dsdp-mtj-dev@xxxxxxxxxxx htt...</description>
		<content:encoded><![CDATA[<br>&#xA0; Hey David,<br><br>&#xA0; I tried what you suggested and it didn&#39;t work. Floggy weaver works exactly the way that you described, copying the classes before the package builder run.<br><br>&#xA0; Attached you will find our .project file that ensure the builders execution sequence.<br>

<br>&#xA0; Best<br><br>&#xA0; Thiago Moreira<br><br><div class="gmail_quote">On Wed, Nov 4, 2009 at 8:50 AM, David Marques <span dir="ltr">&lt;<a href="mailto:dpsmarques@xxxxxxxxx">dpsmarques@xxxxxxxxx</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hi Thiago,<br><br>&#xA0;&#xA0;&#xA0; I will try to set up my eclipse environment this week in order to try to help you on this. Have you tried creating an empty package (for example src/my/test) on your project and added it to the &lt;configuration&gt;.includes entry in your build.properties. Yor classes should be copied to the bin/my/test during the build process sometime before the package builder is run.<div class="im">

<br><br>Best Regards,<br><div>&#xA0;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms
 Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Eclipse Mobile Industry Working Group - <a rel="nofollow" href="http://www.eclipse.org/pulsar/" target="_blank">http://www.eclipse.org/pulsar/</a><br>

Eclipse Mobile Tools for the Java Platform - <a rel="nofollow" href="http://www.eclipse.org/dsdp/mtj/" target="_blank">http://www.eclipse.org/dsdp/mtj/</a><br></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br>

<div><br></div></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1">

<b><span style="font-weight: bold;">From:</span></b> Thiago Moreira
 (timba) &lt;<a href="mailto:tmoreira2020@xxxxxxxxx" target="_blank">tmoreira2020@xxxxxxxxx</a>&gt;<div class="im"><br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>

</div><b><span style="font-weight: bold;">Sent:</span></b> Tue, November 3, 2009 11:44:23 PM<div><div></div><div class="h5"><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br>

</div></div></font><div><div></div><div class="h5"><br>
<br>&#xA0; Hi David,<br><br>&#xA0; Regarding the build.properties I made a test with eclipse-pulsar-galileo-SR1-linux-gtk-x86_64 and once I add the classes that I want to embedded in final jar and save, my changes are wiped out from the build.properties! <br>



&#xA0; I also made the same test with another Pulsar bundle, don&#39;t remember the name/version, and got a NullPointerException at PackageBuilderVisitor.isOnBuildProperties. <br><br>&#xA0; Thanks in advance.<br><br>&#xA0; Thiago Moreira&#xA0; <br>




<br><div class="gmail_quote">On Fri, Oct 30, 2009 at 8:57 AM, David Marques <span dir="ltr">&lt;<a rel="nofollow" href="mailto:dpsmarques@xxxxxxxxx" target="_blank">dpsmarques@xxxxxxxxx</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hi Dan,<br><br>&#xA0;&#xA0;&#xA0; You haven&#39;t said anything about the build properties, so i assume you added the entries required for the package builder to include your generated class files into the app JAR right !? Follows some answers:<div>




<br><br>1) I&#39;m assuming this extra build before launching is intended... is this right ?<br></div>&#xA0;&#xA0;&#xA0; - Well, is it being invoked explicitly by MTJ code !? Auto builds are quite hard to presume, it sometimes runs for weird reasons :(<div>




<br><br>2) Is there something about the build I could detect, or hints on how to know if I need to re-build ?<br></div>&#xA0;&#xA0;&#xA0; - Well besides the resource deltas i think you should take a look at the build hooks extension point.<br>




<br>
3) Any other advice :)<br>&#xA0;&#xA0;&#xA0; - Let me know if it does not work still... I will try to find some time to help you on this on the weekend :)<div><br><br>Best Regards,<br><div>&#xA0;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br>




<span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);"><span>Eclipse Mobile Industry Working Group - <a href="http://www.eclipse.org/pulsar/" target="_blank">http://www.eclipse.org/pulsar/</a></span><br>

<span>


Eclipse Mobile Tools for the Java Platform - <a href="http://www.eclipse.org/dsdp/mtj/" target="_blank">http://www.eclipse.org/dsdp/mtj/</a></span><br></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br>




<div><br></div></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div>
<hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dan Murphy &lt;<a rel="nofollow" href="mailto:dgemurphy@xxxxxxxxx" target="_blank">dgemurphy@xxxxxxxxx</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>




</div><b><span style="font-weight: bold;">Sent:</span></b> Fri, October 30, 2009 7:04:20 AM<div><div></div><div><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br>




</div></div></font><div><div></div><div><br>
Hi David &amp; co,<br><br>I had a little luck last night and figured out what was going wrong, but would appreciate to know if this is expected behavior....<br><br>A little background... With Eclipse 3.4, MTJ 0.9 &amp; Floggy we had a number of reports of infinite build loops when build automatically was enabled. To get around this we put in a check to only do byte code weaving if a change was detected in a source folder.<br>





<br>What I&#39;m now seeing is that just before a midlet is launched a build is initiated... The Java builder compile the code, but since the build delta doesn&#39;t contain a source code change floggy&#39;s builder doesn&#39;t do anything. The preverification builder and package builder then pickup the new class file (that doesn&#39;t contain the floggy woven code) and launches... end result is that the class doesn&#39;t contain the additional bytecode needed to work.<br>





<br>To test this I removed the condition in the floggy builder and hey-presto it all worked. I didn&#39;t get an infinite build loop, however it didn&#39;t always happen in the past, so am a little concerned about leaving this out. I could change the conditional build, say to only build if a change to the output is detected but am thinking that things other than class files may be here also... I guess I could change to build only if a class file changes in the bin directory, since the preverfication builder outputs to the .mtj temp directory I should be safe from java-&gt;floggy-&gt;preverify-&gt;floggy loops (?) <br>





<br>So, a couple of Qs...<br>1) I&#39;m assuming this extra build before launching is intended... is this right ?<br>2) Is there something about the build I could detect, or hints on how to know if I need to re-build ?<br>





3) Any other advice :)<br><br>Thanks in advance,<br>Dan<br><br><div class="gmail_quote">2009/10/29 Dan Murphy <span dir="ltr">&lt;<a rel="nofollow" href="mailto:dgemurphy@xxxxxxxxx" target="_blank">dgemurphy@xxxxxxxxx</a>&gt;</span><br>




<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div>Hi David, thanks for the info. I&#39;ll have another try with the build.properties. When I tried manually changing this file it didn&#39;t seem to work. However that was with the 1.0 release so things may have changed since then.</div>





<div><br></div><div>All the best,</div><div><div>Dan<br><br>----- Sent&#xA0;<span>on the hoof from my phone ! -----</span></div></div><div><div></div><div><div><br>On 29 Oct 2009, at 12:53, David Marques &lt;<a rel="nofollow" href="mailto:dpsmarques@xxxxxxxxx" target="_blank">dpsmarques@xxxxxxxxx</a>&gt; wrote:<br>





<br></div><div></div><blockquote type="cite"><div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hello All,<br><br>&#xA0;&#xA0;&#xA0; The last builder for an MTJ project is the PackageBuilder. This builder is responsible to filter the content on the bin/ directory and package only the files/folders that match any &#39;include&#39; entry within the build.properties. As soon as the generated classes are copied into the bin/ folder before the package builder is run and an entry like net/sourceforge/floggy/ is in the include part of the build.properties it should work :)<br>





<br>Best Regards,<br><div>&#xA0;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms
 Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Eclipse Mobile Industry Working Group - <a rel="nofollow" href="http://www.eclipse.org/pulsar/" target="_blank"></a><span><a rel="nofollow" href="http://www.eclipse.org/pulsar/" target="_blank">http://www.eclipse.org/pulsar/</a></span><br>





Eclipse Mobile Tools for the Java Platform - <a rel="nofollow" href="http://www.eclipse.org/dsdp/mtj/" target="_blank"></a><span><a rel="nofollow" href="http://www.eclipse.org/dsdp/mtj/" target="_blank">http://www.eclipse.org/dsdp/mtj/</a></span><br>





</span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br><div><br></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">





<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dan Murphy
 &lt;<a rel="nofollow" href="mailto:dgemurphy@xxxxxxxxx" target="_blank">dgemurphy@xxxxxxxxx</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>





<b><span style="font-weight: bold;">Sent:</span></b> Thu, October 29, 2009 5:22:57 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br></font><br>





<div>Hi Thiago,</div><div>The reason I went for the jar approach was that creating stubs seemed likey to result in the stubs being stored in the users scm system, which I thought was best avoided.</div><div><br></div><div>





With the latest trunk, the weaver customised impl classes are being jar&#39;d and copied. The problem is that the weaver persistable classes are not being copied from the floggy temp directory back into the project bin directory... Either that or the bin directory needs a refresh.. Whatever the cause, the woven data classes are not apppearing in the jar used by the emulator.</div>





<div><br></div><div>I&#39;ll continue to have a look over lunch today</div><div><br></div><div>Cheers,</div><div>Dan</div><div><br>----- Sent&#xA0;<span>on the hoof from my phone ! -----</span></div><div><br>On 29 Oct 2009, at 01:54, &quot;Thiago Moreira (timba)&quot; &lt;<a rel="nofollow" href="mailto:tmoreira2020@xxxxxxxxx" target="_blank"></a><a rel="nofollow" href="mailto:tmoreira2020@xxxxxxxxx" target="_blank">tmoreira2020@xxxxxxxxx</a>&gt; wrote:<br>





<br></div><div></div><blockquote type="cite"><div><br>&#xA0; Hi all,<br><br>&#xA0; I would like bring this thread back to live: <a rel="nofollow" href="http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html" target="_blank"></a><span><span><a href="http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html" target="_blank">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html</a>. We still didn&#39;t fix it so I&#39;m here to ask more questions. </span></span><br>








<br>&#xA0; David, how can I build stubs like you said in your last comment? I made a search and found the below reference of stubs and pde, it is related to what you meant ?<br><br>&#xA0; <a rel="nofollow" href="http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html" target="_blank"></a><span><span><a href="http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html" target="_blank">http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html</a></span></span><br>








<br>&#xA0; Let me explain a little more how Floggy works, so maybe you guys can give us a better feedback<br><br>&#xA0; 1&#xBA; compiler finish its process<br>&#xA0; 2&#xBA; Floggy weaver start to analyze the bytecodes <br>&#xA0; 3&#xBA; Floggy weaver will for each class that implements Persistable add methods and fields in the class.<br>








&#xA0; 4&#xBA; Floggy weaver will drop off predefined classes into bin folder to the package net.sourceforge.floggy.persistence.impl. These classes doesn&#39;t have a java file pair.<br><br>&#xA0; Until the third step everything works fine since we have a correlated .java file for each .class file.<br>







<br>&#xA0; The problem is MTJ does not embedded the classes from the fourth step!<br><br>&#xA0; Any help is appreciated. Thanks in advance.<br><br>&#xA0; Thiago Moreira<br><br>&#xA0; <br><br>&#xA0; <br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>dsdp-mtj-dev mailing list</span><br><span><a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank"></a><a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a></span><br>





<span><a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank"></a><a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a></span><br>





</div></blockquote></div></div></div><br>

      </div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>dsdp-mtj-dev mailing list</span><br><span><a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a></span><br>





<span><a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a></span><br></div></blockquote></div></div></div></blockquote></div>




<br>
</div></div></div></div>

</div><br>

      </div><br>_______________________________________________<br>
dsdp-mtj-dev mailing list<br>
<a rel="nofollow" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank">dsdp-mtj-dev@xxxxxxxxxxx</a><br>
<a rel="nofollow" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a><br>
<br></blockquote></div><br>
</div></div></div></div>

</div><br>

      </div><br>_______________________________________________<br>
dsdp-mtj-dev mailing list<br>
<a href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a><br>
<br></blockquote></div><br>
<p><strong>Attachment:
<a href="binNXSTIbJqD7.bin" ><tt>.project</tt></a></strong><br>
<em>Description:</em> Binary data</p>
]]></content:encoded>
		<pubDate>Thu, 05 Nov 2009 02:20:25 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01440.html</guid>
		<author>tmoreira2020@xxxxxxx (Thiago Moreira (timba))</author>
	</item>
	<item>
		<title>Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes</title>
		<link>http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01439.html</link>
		<description> _______________________________________________ dsdp-mtj-dev mailing list dsdp-mtj-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev </description>
		<content:encoded><![CDATA[<div style="font-family:verdana,helvetica,sans-serif;font-size:10pt">Hi Thiago,<br><br>&nbsp;&nbsp;&nbsp; I will try to set up my eclipse environment this week in order to try to help you on this. Have you tried creating an empty package (for example src/my/test) on your project and added it to the &lt;configuration&gt;.includes entry in your build.properties. Yor classes should be copied to the bin/my/test during the build process sometime before the package builder is run.<br><br>Best Regards,<br><div>&nbsp;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><strong>David Marques</strong></span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms
 Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Eclipse Mobile Industry Working Group - <a rel="nofollow" target="_blank" href="http://www.eclipse.org/pulsar/">http://www.eclipse.org/pulsar/</a><br>Eclipse Mobile Tools for the Java Platform - <a rel="nofollow" target="_blank" href="http://www.eclipse.org/dsdp/mtj/">http://www.eclipse.org/dsdp/mtj/</a><br></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br><div><br></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Thiago Moreira
 (timba) &lt;tmoreira2020@xxxxxxxxx&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;dsdp-mtj-dev@xxxxxxxxxxx&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, November 3, 2009 11:44:23 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br></font><br>
<br>&nbsp; Hi David,<br><br>&nbsp; Regarding the build.properties I made a test with eclipse-pulsar-galileo-SR1-linux-gtk-x86_64 and once I add the classes that I want to embedded in final jar and save, my changes are wiped out from the build.properties! <br>

&nbsp; I also made the same test with another Pulsar bundle, don't remember the name/version, and got a NullPointerException at PackageBuilderVisitor.isOnBuildProperties. <br><br>&nbsp; Thanks in advance.<br><br>&nbsp; Thiago Moreira&nbsp; <br>


<br><div class="gmail_quote">On Fri, Oct 30, 2009 at 8:57 AM, David Marques <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:dpsmarques@xxxxxxxxx" target="_blank" href="mailto:dpsmarques@xxxxxxxxx">dpsmarques@xxxxxxxxx</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hi Dan,<br><br>&nbsp;&nbsp;&nbsp; You haven't said anything about the build properties, so i assume you added the entries required for the package builder to include your generated class files into the app JAR right !? Follows some answers:<div>


<br><br>1) I'm assuming this extra build before launching is intended... is this right ?<br></div>&nbsp;&nbsp;&nbsp; - Well, is it being invoked explicitly by MTJ code !? Auto builds are quite hard to presume, it sometimes runs for weird reasons :(<div>


<br><br>2) Is there something about the build I could detect, or hints on how to know if I need to re-build ?<br></div>&nbsp;&nbsp;&nbsp; - Well besides the resource deltas i think you should take a look at the build hooks extension point.<br>


<br>
3) Any other advice :)<br>&nbsp;&nbsp;&nbsp; - Let me know if it does not work still... I will try to find some time to help you on this on the weekend :)<div><br><br>Best Regards,<br><div>&nbsp;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br>


<span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);"><span>Eclipse Mobile Industry Working Group - <a target="_blank" href="http://www.eclipse.org/pulsar/">http://www.eclipse.org/pulsar/</a></span><br><span>


Eclipse Mobile Tools for the Java Platform - <a target="_blank" href="http://www.eclipse.org/dsdp/mtj/">http://www.eclipse.org/dsdp/mtj/</a></span><br></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br>


<div><br></div></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div>
<hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dan Murphy &lt;<a rel="nofollow" ymailto="mailto:dgemurphy@xxxxxxxxx" target="_blank" href="mailto:dgemurphy@xxxxxxxxx">dgemurphy@xxxxxxxxx</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a rel="nofollow" ymailto="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>


</div><b><span style="font-weight: bold;">Sent:</span></b> Fri, October 30, 2009 7:04:20 AM<div><div></div><div><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br>


</div></div></font><div><div></div><div><br>
Hi David &amp; co,<br><br>I had a little luck last night and figured out what was going wrong, but would appreciate to know if this is expected behavior....<br><br>A little background... With Eclipse 3.4, MTJ 0.9 &amp; Floggy we had a number of reports of infinite build loops when build automatically was enabled. To get around this we put in a check to only do byte code weaving if a change was detected in a source folder.<br>



<br>What I'm now seeing is that just before a midlet is launched a build is initiated... The Java builder compile the code, but since the build delta doesn't contain a source code change floggy's builder doesn't do anything. The preverification builder and package builder then pickup the new class file (that doesn't contain the floggy woven code) and launches... end result is that the class doesn't contain the additional bytecode needed to work.<br>



<br>To test this I removed the condition in the floggy builder and hey-presto it all worked. I didn't get an infinite build loop, however it didn't always happen in the past, so am a little concerned about leaving this out. I could change the conditional build, say to only build if a change to the output is detected but am thinking that things other than class files may be here also... I guess I could change to build only if a class file changes in the bin directory, since the preverfication builder outputs to the .mtj temp directory I should be safe from java-&gt;floggy-&gt;preverify-&gt;floggy loops (?) <br>



<br>So, a couple of Qs...<br>1) I'm assuming this extra build before launching is intended... is this right ?<br>2) Is there something about the build I could detect, or hints on how to know if I need to re-build ?<br>



3) Any other advice :)<br><br>Thanks in advance,<br>Dan<br><br><div class="gmail_quote">2009/10/29 Dan Murphy <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:dgemurphy@xxxxxxxxx" target="_blank" href="mailto:dgemurphy@xxxxxxxxx">dgemurphy@xxxxxxxxx</a>&gt;</span><br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div>Hi David, thanks for the info. I'll have another try with the build.properties. When I tried manually changing this file it didn't seem to work. However that was with the 1.0 release so things may have changed since then.</div>



<div><br></div><div>All the best,</div><div><div>Dan<br><br>----- Sent&nbsp;<span>on the hoof from my phone ! -----</span></div></div><div><div></div><div><div><br>On 29 Oct 2009, at 12:53, David Marques &lt;<a rel="nofollow" ymailto="mailto:dpsmarques@xxxxxxxxx" target="_blank" href="mailto:dpsmarques@xxxxxxxxx">dpsmarques@xxxxxxxxx</a>&gt; wrote:<br>



<br></div><div></div><blockquote type="cite"><div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hello All,<br><br>&nbsp;&nbsp;&nbsp; The last builder for an MTJ project is the PackageBuilder. This builder is responsible to filter the content on the bin/ directory and package only the files/folders that match any 'include' entry within the build.properties. As soon as the generated classes are copied into the bin/ folder before the package builder is run and an entry like net/sourceforge/floggy/ is in the include part of the build.properties it should work :)<br>



<br>Best Regards,<br><div>&nbsp;</div><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(255, 153, 0);"><b>David Marques</b></span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Mobile Software Platforms
 Researcher<br>=============================================================</span><br><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">Eclipse Mobile Industry Working Group - <a rel="nofollow" target="_blank" href="http://www.eclipse.org/pulsar/"></a><span><a rel="nofollow" target="_blank" href="http://www.eclipse.org/pulsar/">http://www.eclipse.org/pulsar/</a></span><br>



Eclipse Mobile Tools for the Java Platform - <a rel="nofollow" target="_blank" href="http://www.eclipse.org/dsdp/mtj/"></a><span><a rel="nofollow" target="_blank" href="http://www.eclipse.org/dsdp/mtj/">http://www.eclipse.org/dsdp/mtj/</a></span><br>



</span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: rgb(51, 51, 51);">=============================================================</span><br><div><br></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">



<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dan Murphy
 &lt;<a rel="nofollow" ymailto="mailto:dgemurphy@xxxxxxxxx" target="_blank" href="mailto:dgemurphy@xxxxxxxxx">dgemurphy@xxxxxxxxx</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Mobile Tools for The Java Platform mailing list &lt;<a rel="nofollow" ymailto="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a>&gt;<br>



<b><span style="font-weight: bold;">Sent:</span></b> Thu, October 29, 2009 5:22:57 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [dsdp-mtj-dev] PackageBuilder ignoring generated classes<br></font><br>



<div>Hi Thiago,</div><div>The reason I went for the jar approach was that creating stubs seemed likey to result in the stubs being stored in the users scm system, which I thought was best avoided.</div><div><br></div><div>



With the latest trunk, the weaver customised impl classes are being jar'd and copied. The problem is that the weaver persistable classes are not being copied from the floggy temp directory back into the project bin directory... Either that or the bin directory needs a refresh.. Whatever the cause, the woven data classes are not apppearing in the jar used by the emulator.</div>



<div><br></div><div>I'll continue to have a look over lunch today</div><div><br></div><div>Cheers,</div><div>Dan</div><div><br>----- Sent&nbsp;<span>on the hoof from my phone ! -----</span></div><div><br>On 29 Oct 2009, at 01:54, "Thiago Moreira (timba)" &lt;<a rel="nofollow" ymailto="mailto:tmoreira2020@xxxxxxxxx" target="_blank" href="mailto:tmoreira2020@xxxxxxxxx"></a><a rel="nofollow" ymailto="mailto:tmoreira2020@xxxxxxxxx" target="_blank" href="mailto:tmoreira2020@xxxxxxxxx">tmoreira2020@xxxxxxxxx</a>&gt; wrote:<br>



<br></div><div></div><blockquote type="cite"><div><br>&nbsp; Hi all,<br><br>&nbsp; I would like bring this thread back to live: <a rel="nofollow" target="_blank" href="http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html"></a><span><span><a target="_blank" href="http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01298.html</a>. We still didn't fix it so I'm here to ask more questions. </span></span><br>






<br>&nbsp; David, how can I build stubs like you said in your last comment? I made a search and found the below reference of stubs and pde, it is related to what you meant ?<br><br>&nbsp; <a rel="nofollow" target="_blank" href="http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html"></a><span><span><a target="_blank" href="http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html">http://www.techq.com/source/java/Eclipse-PDE/3.4.2/org/eclipse/pde/api/tools/internal/provisional/stubs/Converter.html</a></span></span><br>






<br>&nbsp; Let me explain a little more how Floggy works, so maybe you guys can give us a better feedback<br><br>&nbsp; 1&#xBA; compiler finish its process<br>&nbsp; 2&#xBA; Floggy weaver start to analyze the bytecodes <br>&nbsp; 3&#xBA; Floggy weaver will for each class that implements Persistable add methods and fields in the class.<br>






&nbsp; 4&#xBA; Floggy weaver will drop off predefined classes into bin folder to the package net.sourceforge.floggy.persistence.impl. These classes doesn't have a java file pair.<br><br>&nbsp; Until the third step everything works fine since we have a correlated .java file for each .class file.<br>





<br>&nbsp; The problem is MTJ does not embedded the classes from the fourth step!<br><br>&nbsp; Any help is appreciated. Thanks in advance.<br><br>&nbsp; Thiago Moreira<br><br>&nbsp; <br><br>&nbsp; <br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>dsdp-mtj-dev mailing list</span><br><span><a rel="nofollow" ymailto="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx"></a><a rel="nofollow" ymailto="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a></span><br>



<span><a rel="nofollow" target="_blank" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev"></a><a rel="nofollow" target="_blank" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a></span><br>



</div></blockquote></div></div></div><br>

      </div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>dsdp-mtj-dev mailing list</span><br><span><a rel="nofollow" ymailto="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a></span><br>



<span><a rel="nofollow" target="_blank" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a></span><br></div></blockquote></div></div></div></blockquote></div>


<br>
</div></div></div></div>

</div><br>

      </div><br>_______________________________________________<br>
dsdp-mtj-dev mailing list<br>
<a rel="nofollow" ymailto="mailto:dsdp-mtj-dev@xxxxxxxxxxx" target="_blank" href="mailto:dsdp-mtj-dev@xxxxxxxxxxx">dsdp-mtj-dev@xxxxxxxxxxx</a><br>
<a rel="nofollow" target="_blank" href="https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev">https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev</a><br>
<br></blockquote></div><br>
</div></div>
<!---->
</div><br>

      ]]></content:encoded>
		<pubDate>Wed, 04 Nov 2009 10:50:41 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/dsdp-mtj-dev/msg01439.html</guid>
		<author>dpsmarques@xxxxxxx (David Marques)</author>
	</item>

 
	</channel>
	</rss>
<!-- MHonArc v2.6.10 -->
