From richard.t.ngo at gmail.com Thu Oct 2 11:24:55 2014 From: richard.t.ngo at gmail.com (Richard Ngo) Date: Thu, 2 Oct 2014 10:24:55 -0500 Subject: [forge-users] customize views and classes Message-ID: Hi all, Long time lurker to the list and I am finally ready to use it in a small project but I have a few questions if you guys will be so kind to answer. 1. What is the most advisable way to modify the UI? Should I modify the auto generated ones or create my own? 2. extending generated classes - Is this advisable or just create a totally separate one? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20141002/f76ab39c/attachment.html From forge-users at lists.jboss.org Fri Oct 3 10:19:16 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Fri, 03 Oct 2014 10:19:16 EDT Subject: [forge-users] How to use Forge 2.10.1.Final jpa-generate-entities-from-tables ? In-Reply-To: <1885149495.241411743424913.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <499398898.11412345986617.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> thanks, i try again and comment. *It looks like you are trying to use a MySQL database named 'database'.? Is that truly the name of your database ?* Not the real name of my database. Posted by forums Original post: https://developer.jboss.org/message/905978#905978 From forge-users at lists.jboss.org Sun Oct 5 01:55:01 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Sun, 05 Oct 2014 01:55:01 EDT Subject: [forge-users] IntelliJ Plugin error Message-ID: <1350122479.21412488532228.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> I got the following error when trying to apply the plugin in IntelliJ version 13.1.5 with JDK 1.8.0_20. Can anyone help me with this issue?? Thank you! Plugin 'org.jboss.forge.plugin.idea' failed to initialize and will be disabled.? Please restart IntelliJ IDEA. com.intellij.diagnostic.PluginException: org/jboss/forge/plugin/idea/service/ForgeService : Unsupported major.minor version 51.0 [Plugin: org.jboss.forge.plugin.idea] ??? at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:130) ??? at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:77) ??? at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:66) ??? at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ??? at java.lang.Class.forName0(Native Method) ??? at java.lang.Class.forName(Class.java:249) ??? at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.loadClasses(ComponentManagerImpl.java:408) ??? at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.loadClasses(ComponentManagerImpl.java:398) ??? at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.access$000(ComponentManagerImpl.java:384) ??? at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:107) ??? at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:89) ??? at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:87) ??? at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:508) ??? at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:151) ??? at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:46) ??? at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) ??? at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715) ??? at java.awt.EventQueue.access$400(EventQueue.java:82) ??? at java.awt.EventQueue$2.run(EventQueue.java:676) ??? at java.awt.EventQueue$2.run(EventQueue.java:674) ??? at java.security.AccessController.doPrivileged(Native Method) ??? at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86) ??? at java.awt.EventQueue.dispatchEvent(EventQueue.java:685) ??? at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697) ??? at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524) ??? at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335) ??? at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) ??? at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) ??? at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) ??? at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) ??? at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) ??? at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) Caused by: java.lang.UnsupportedClassVersionError: org/jboss/forge/plugin/idea/service/ForgeService : Unsupported major.minor version 51.0 ??? at java.lang.ClassLoader.defineClass1(Native Method) ??? at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) ??? at java.lang.ClassLoader.defineClass(ClassLoader.java:621) ??? at java.lang.ClassLoader.defineClass(ClassLoader.java:471) ??? at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:195) ??? at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:191) ??? at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:167) ??? at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:124) ??? ... 31 more Posted by forums Original post: https://developer.jboss.org/message/906050#906050 From forge-users at lists.jboss.org Sun Oct 5 03:59:26 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Sun, 05 Oct 2014 03:59:26 EDT Subject: [forge-users] IntelliJ Plugin error In-Reply-To: <1350122479.21412488532228.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <389331927.31412495996775.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> It looks like your IntelliJ instance is run on JDK6 or lower. Can you make sure that your IntelliJ is configured to use JRE 1.7/1.8? (go to Help > About to see current JRE version) Posted by forums Original post: https://developer.jboss.org/message/906051#906051 From forge-users at lists.jboss.org Sun Oct 5 12:41:30 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Sun, 05 Oct 2014 12:41:30 EDT Subject: [forge-users] IntelliJ Plugin error In-Reply-To: <389331927.31412495996775.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <1549335239.41412527321173.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Adam, I did have the lower version of JRE. Thank you for your help. Posted by forums Original post: https://developer.jboss.org/message/906054#906054 From forge-users at lists.jboss.org Thu Oct 9 15:44:29 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Thu, 09 Oct 2014 15:44:29 EDT Subject: [forge-users] Forge tools not working! Message-ID: <914494939.141412883899431.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> I have installed jboss tools development build 4.2.0 CR1 for Eclipse Luna 4.4 on Mac OSX Mavericks and do not see any forge tools. I tried to create new project using command-n and also tried command-4 but in vain. I do not know what else needs to be done to enable it. I have tried the Jboss Tools Nightly build too but no success there either. Posted by forums Original post: https://developer.jboss.org/message/906572#906572 From forge-users at lists.jboss.org Fri Oct 10 04:24:25 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Fri, 10 Oct 2014 04:24:25 EDT Subject: [forge-users] Forge tools not working! In-Reply-To: <914494939.141412883899431.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <1927206231.211412929495181.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Hi Tushar, ??? Do you see any exception or error in the Eclipse workspace log (or in the Errors view in Eclipse) ? This might give us a hint on what is going wrong. Vineet Posted by forums Original post: https://developer.jboss.org/message/906620#906620 From forge-users at lists.jboss.org Fri Oct 10 04:45:37 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Fri, 10 Oct 2014 04:45:37 EDT Subject: [forge-users] Forge tools not working! In-Reply-To: <914494939.141412883899431.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <161132823.231412930768015.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Hi Tushar, Can you do a number of checks? 1. Verify that Forge Tools is installed: go to 'Eclipse->About Eclipse->Installation Details' and verify the presence of the feature with id 'org.jboss.tools.forge.feature'. 2. Verify the Forge key binding: go to 'Eclipse->Preferences->General->Keys' and verify that the command 'Run a Forge Command' is bound to "Cmd+4". If this is all OK, the problem might be that you have a keyboard with a special layout (such as a French "azerty" layout like myself). For such a layout you need to redefine the key combination as "Cmd+4" cannot be pressed (it involves the shift key and for Eclipse that is a different key combination). Let us know if this helps. Cheers, Koen Posted by forums Original post: https://developer.jboss.org/message/906624#906624 From forge-users at lists.jboss.org Fri Oct 10 07:28:18 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Fri, 10 Oct 2014 07:28:18 EDT Subject: [forge-users] Forge tools not working! In-Reply-To: <1927206231.211412929495181.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <1528404368.271412940528807.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Hello Vineet, No I do not get any errors. I just can't find a way to use forge! Thanks. Posted by forums Original post: https://developer.jboss.org/message/906650#906650 From forge-users at lists.jboss.org Fri Oct 10 08:35:20 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Fri, 10 Oct 2014 08:35:20 EDT Subject: [forge-users] Forge tools not working! In-Reply-To: <161132823.231412930768015.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <609318539.291412944550138.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Hello Koen, I verified that Forge Tools are installed by looking up feature with id 'org.jboss.tools.forge.feare' but still do not find an option to bind 'Run a Forge command' under 'Eclipse->Preferences->General->Keys' and I do not see a forge console under Jboss perspective in eclipse. I have followed the right install process for both eclipse Luna and jboss tools development version (4.2.0 CR1) but some how I am not able to find any way to use Forge tools wizard or console. Thanks. Posted by forums Original post: https://developer.jboss.org/message/906673#906673 From forge-users at lists.jboss.org Fri Oct 10 10:38:23 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Fri, 10 Oct 2014 10:38:23 EDT Subject: [forge-users] Forge tools not working! In-Reply-To: <609318539.291412944550138.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <501121613.301412951933914.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Hi Tushar, Image:installation.png This is weird. So you can confirm that in your Eclipse Installation Details view the highlighted line in the screenshot above is present while the highlighted line in the Eclipse Preferences view from the screenshot below is *not* present? Image:preferences.png If this is correct, what do you see when you type 'forge' in the 'Quick Access' text box on the Eclipse toolbar? Do you see something like below? Image:quick.png Cheers, Koen Posted by forums Original post: https://developer.jboss.org/message/906695#906695 From forge-users at lists.jboss.org Fri Oct 10 12:03:33 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Fri, 10 Oct 2014 12:03:33 EDT Subject: [forge-users] Forge tools not working! In-Reply-To: <501121613.301412951933914.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <1296389923.311412957043608.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Hi Koen, Thanks for your help. I found that forge 2 can not run on idk 6 from https://developer.jboss.org/wiki/MatrixOfSupportedPlatformsRuntimesAndTechnologiesInJBossToolsJBDS (/wiki/MatrixOfSupportedPlatformsRuntimesAndTechnologiesInJBossToolsJBDS) and that was my issue. Cheers, Tushar Posted by forums Original post: https://developer.jboss.org/message/906711#906711 From forge-users at lists.jboss.org Fri Oct 10 15:54:24 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Fri, 10 Oct 2014 15:54:24 EDT Subject: [forge-users] Forge tools not working! In-Reply-To: <1927206231.211412929495181.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <1277927184.331412970894733.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Hi Vineet, I checked the error logs and was able to see the requirement for forge 2 and confirmed at https://developer.jboss.org/wiki/MatrixOfSupportedPlatformsRuntimesAndTechnologiesInJBossToolsJBDS (/wiki/MatrixOfSupportedPlatformsRuntimesAndTechnologiesInJBossToolsJBDS) that it can not run with JDK 6. Thanks for making me look at error logs. Cheers, Tushar Posted by forums Original post: https://developer.jboss.org/message/906735#906735 From forge-users at lists.jboss.org Fri Oct 10 18:28:29 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Fri, 10 Oct 2014 18:28:29 EDT Subject: [forge-users] Forge tools not found - jBoss tools 4.2.0 CR1! In-Reply-To: <1277927184.331412970894733.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <627097470.351412980139837.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> I probably should have told you to check that since that I was my problem in IntelliJ. Next time. {emoticon:class=jive_macro jive_emote|src=https://static.jboss.org/developer/6.0.3.60ddddd/images/emoticons/happy.png|__jive_emoticon_name=happy} Posted by forums Original post: https://developer.jboss.org/message/906749#906749 From forge-users at lists.jboss.org Tue Oct 14 03:05:36 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Tue, 14 Oct 2014 03:05:36 EDT Subject: [forge-users] Forge tools not found - jBoss tools 4.2.0 CR1! In-Reply-To: <1296389923.311412957043608.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <1480728855.461413270366402.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Hi Tushar, Great that you found the issue and thanks for reporting back. I have created [JBIDE-18602] Warn the user if not JDK1.7+ is used when trying to start Forge - JBoss Issue Tracker (https://issues.jboss.org/browse/JBIDE-18602) so the user gets informed in a better way in the future. Cheers, Koen Posted by forums Original post: https://developer.jboss.org/message/906941#906941 From forge-users at lists.jboss.org Tue Oct 21 02:49:28 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Tue, 21 Oct 2014 02:49:28 EDT Subject: [forge-users] Need help of Seniors Please.... Message-ID: <143700121.761413874198735.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> I'm new on *Jboss 7.1.1.fina*l ,, after successfully creation of cluster of two servers (Master & Slave)? on *Redhat Linux server 6.2* , i'm facing a problem at the time of deployment of a demo project. After successfully uploading project, when i'm trying to enable project for "*other-server-group*" using "*full-ha*" socket an error occur.as : Note: i'm following instructions as per given on : AS7 Cluster Howto - JBoss AS 7.1 - Project Documentation Editor (https://docs.jboss.org/author/display/AS71/AS7+Cluster+Howto#AS7ClusterHowto-Scenario) *Error* Request { ? "address" => [ ? ("server-group" => "other-server-group"), ? ("deployment" => "demo.war") ? ], ? "operation" => "deploy" } Response Internal Server Error { ? "outcome" => "failed", ? "result" => undefined, ? "failure-description" => "JBAS010839: Operation failed or was rolled back on all servers.", ? "rolled-back" => true, ? "server-groups" => {"other-server-group" => {"server-three" => { ? "host" => "slave", ? "response" => { ? "outcome" => "failed", ? "result" => undefined, ? "failure-description" => "JBAS014750: Operation handler failed to complete", ? "rolled-back" => true ? } ? }}} } Posted by forums Original post: https://developer.jboss.org/message/907526#907526 From lincolnbaxter at gmail.com Tue Oct 21 11:07:19 2014 From: lincolnbaxter at gmail.com (Lincoln Baxter, III) Date: Tue, 21 Oct 2014 11:07:19 -0400 Subject: [forge-users] Need help of Seniors Please.... In-Reply-To: <143700121.761413874198735.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> References: <143700121.761413874198735.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: https://issues.jboss.org/browse/ORG-2300 On Tue, Oct 21, 2014 at 2:49 AM, wrote: > I'm new on *Jboss 7.1.1.fina*l ,, after successfully creation of cluster > of two servers (Master & Slave) on *Redhat Linux server 6.2* , i'm facing > a problem at the time of deployment of a demo project. After successfully > uploading project, when i'm trying to enable project for > "*other-server-group*" using "*full-ha*" socket an error occur.as : > Note: i'm following instructions as per given on : > > AS7 Cluster Howto - JBoss AS 7.1 - Project Documentation Editor ( > https://docs.jboss.org/author/display/AS71/AS7+Cluster+Howto#AS7ClusterHowto-Scenario > ) > > > *Error* > > Request > { > "address" => [ > ("server-group" => "other-server-group"), > ("deployment" => "demo.war") > ], > "operation" => "deploy" > } > > Response > > Internal Server Error > { > "outcome" => "failed", > "result" => undefined, > "failure-description" => "JBAS010839: Operation failed or was rolled > back on all servers.", > "rolled-back" => true, > "server-groups" => {"other-server-group" => {"server-three" => { > "host" => "slave", > "response" => { > "outcome" => "failed", > "result" => undefined, > "failure-description" => "JBAS014750: Operation handler failed to > complete", > "rolled-back" => true > } > }}} > } > > Posted by forums > Original post: https://developer.jboss.org/message/907526#907526 > > _______________________________________________ > forge-users mailing list > forge-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/forge-users -- Lincoln Baxter, III http://ocpsoft.org "Simpler is better." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20141021/d36b81dc/attachment-0001.html From lincolnbaxter at gmail.com Tue Oct 21 11:11:06 2014 From: lincolnbaxter at gmail.com (Lincoln Baxter, III) Date: Tue, 21 Oct 2014 11:11:06 -0400 Subject: [forge-users] customize views and classes In-Reply-To: References: Message-ID: Hi Richard, I am very sorry that this email went unnoticed for so long! I'll try to answer your questions as best as I can. 1. You can do either! Once Forge has generated views, you are free to modify them yourself - just be aware that if you re-generate any views with Forge, your changes will be lost! So generally don't re-generate views you've already changed. 2. Same thins as the above, you are free to modify any classes once Forge has generated them. We are still working on the generation itself so that files can be extended at generation time. I hope this is the (very late) answer you were looking for! ~Lincoln On Thu, Oct 2, 2014 at 11:24 AM, Richard Ngo wrote: > Hi all, > > Long time lurker to the list and I am finally ready to use it in a small > project but I have a few questions if you guys will be so kind to answer. > > 1. What is the most advisable way to modify the UI? Should I modify the > auto generated ones or create my own? > > 2. extending generated classes - Is this advisable or just create a > totally separate one? > > Thanks! > > _______________________________________________ > forge-users mailing list > forge-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/forge-users > -- Lincoln Baxter, III http://ocpsoft.org "Simpler is better." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20141021/3f9a3749/attachment.html From forge-users at lists.jboss.org Sat Oct 25 06:07:15 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Sat, 25 Oct 2014 06:07:15 EDT Subject: [forge-users] ROASTER: Using the formatter (feedback) Message-ID: <1900061634.841414231665778.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> I have tried to use the Formatter with a custom format (modifications introduced with ROASTER-37 (https://issues.jboss.org/browse/ROASTER-37)): Formatter.format(Properties, JavaClassSource) Here some findings / information: h2. 1/ Obtain the Properties object When you export the Java Formatter format from Eclipse (see screenshot), you obtain an xml file. The settings contained in the file are correct (setting tag: id attribute & value attribute) but I think that the format is not suitable. Alternative is to check the /.settings/org.eclipse.jdt.core.prefs of your java project (if you have checked the ?Enabled project specific settings? in the project preferences, the current formatter settings will also be stored there). I my opinion this file contains too much entries (non jdt-formatter stuff), but the format is suitable and it can be loaded into a java.util.Properties object. Here is how (based on google guava): //imports: com.google.common.io.Files, com.google.common.base.Charsets //propFile is a java.io.File BufferedReader inputStream = Files.+newReader+(propFile, Charsets.+UTF_8+); Properties prop = *new* Properties(); 1. prop.load(inputStream); If you want to do some cleanup, you can extract the lines from the org.eclipse.jdt.core.prefs file into a roaster_formatter.properties file. Basically you will need the lines starting with org.eclipse.jdt.core.formatter. The keys are defined in this Javadoc: DefaultCodeFormatterConstants (http://help.eclipse.org/luna/topic/org.eclipse.jdt.doc.isv/reference/api/org/eclipse/jdt/core/formatter/DefaultCodeFormatterConstants.html). h2. 2/ Make the formatter working: set the version of the java source I noticed that my formatter was not working with all my JavaClassSource classes. After a long debug session, I found out why it was not working. A breakpoint in RecordedParsingInformation.updateRecordedParsingInformation(CompilationResult) shows that is some cases, compilationResult.problems is not null: Pb(596) Syntax error, annotations are only available if source level is 1.5 or greater The JDT cannot compile a file that cannot be parsed. It took me a while to understand how to set the source level. If you do nothing, the method DefaultCodeFormatter.getDefaultCompilerOptions() sets the version to "1.3". Here the corresponding code snippet: Object sourceOption = *this*.options.get(CompilerOptions.OPTION_Source); *if* (sourceOption != *null*) { *this*.defaultCompilerOptions.put(CompilerOptions.OPTION_Source, sourceOption); } *else* { *this*.defaultCompilerOptions.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_3); } To set the version to another version (1.7 for example), just add the line in your properties file: org.jboss.forge.roaster._shade.org.eclipse.jdt.core.compiler.source=1.7 I am not sure why this org.jboss..._shade prefix is necessary, but without this prefix, it is not working. This might be related with ROASTER-12 (https://issues.jboss.org/browse/ROASTER-12). h2. 3/ Side-note: Formatter.format(Properties, JavaClassSource) calls the formatter twice. The current implementation of org.jboss.forge.roaster.model.util.Formatter.format(Properties, JavaClassSource) calls the JDT Formatter twice. The implementation looks like this: /** ??? * Format the given {@link JavaClassSource}, using the given Eclipse code format {@link Properties}. ??? */ *public* *static* String format(Properties prefs, JavaClassSource javaClass) ?? { *return* +format+(prefs, javaClass.toString()); ?? } A break point at the beginning of the private method: Formatter._format(String, CodeFormatter) shows why: - First call: because of the AbstractJavaSource#toString() implementation. The class gets formatted with the default settings. - Second call: the expected one. I hope this feedback is useful for other developers using roaster. Posted by forums Original post: https://developer.jboss.org/message/908059#908059 From forge-users at lists.jboss.org Sat Oct 25 07:50:26 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Sat, 25 Oct 2014 07:50:26 EDT Subject: [forge-users] ROASTER: Using the formatter (feedback) In-Reply-To: <1900061634.841414231665778.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <1430914637.851414237857119.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Hi Jeremie, This is awesome, thanks for sharing this! I think that we could address some of these issues? (default compiler options, Formatter class being called twice) by changing the code in Roaster, would you like to submit a Pull-Request for that? Best Regards, George Gastaldi Posted by forums Original post: https://developer.jboss.org/message/908068#908068 From forge-users at lists.jboss.org Sat Oct 25 07:52:16 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Sat, 25 Oct 2014 07:52:16 EDT Subject: [forge-users] ROASTER: Using the formatter (feedback) In-Reply-To: <1900061634.841414231665778.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <163066025.861414237966682.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Also we could have a method in JavaSourceFacet that returns this Properties object, since it is bound to a Project, so I guess we can address all these issues {emoticon:class=jive_macro jive_emote|src=https://static.jboss.org/developer/6.0.3.60ddddd/images/emoticons/wink.png|__jive_emoticon_name=wink} Posted by forums Original post: https://developer.jboss.org/message/908069#908069 From forge-users at lists.jboss.org Sat Oct 25 13:12:45 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Sat, 25 Oct 2014 13:12:45 EDT Subject: [forge-users] ROASTER: Using the formatter (feedback) In-Reply-To: <1430914637.851414237857119.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <1282802553.871414257195647.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Hi George, Thank you for your message. I am not sure to have understood what you suggest to change (debuging the JDT code to understand what it doesn't work is easy in comparison to propose a change). If you provide me some detailed information about what I need to change, I should be able to open the JIRA entry and to push some code. By the way, have you some input to help me with the setup (version of the eclipse IDE you use, formatter, preferences...). Thank you in advance. Posted by forums Original post: https://developer.jboss.org/message/908074#908074 From forge-users at lists.jboss.org Mon Oct 27 12:16:32 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Mon, 27 Oct 2014 12:16:32 EDT Subject: [forge-users] ROASTER: Using the formatter (feedback) In-Reply-To: <1282802553.871414257195647.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Message-ID: <767998994.881414426626419.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Hi Jeremie, I was referring to changing the org.jboss.forge.roaster.model.util.Formatter.format(Properties, JavaClassSource) implementation. Also, adding a method in JavaSourceFacet (or another facet - TBD) to return the Properties needed for this method. About my current setup, I work in the Roaster sources with Eclipse Luna and use the formatter provided in core/eclipse-code-formatter-profile.xml at master ? forge/core ? GitHub (https://github.com/forge/core/blob/master/eclipse-code-formatter-profile.xml) Best Regards, George Gastaldi Posted by forums Original post: https://developer.jboss.org/message/908186#908186 From forge-users at lists.jboss.org Thu Oct 30 05:38:08 2014 From: forge-users at lists.jboss.org (forge-users at lists.jboss.org) Date: Thu, 30 Oct 2014 05:38:08 EDT Subject: [forge-users] wildfly plugin not working ? Message-ID: <1268202165.971414661918571.JavaMail.jive@jive-app01.app.mwc.hst.phx2.redhat.com> Hi, I've installed the Wildfly plugin from http://forge.jboss.org/addon/org.jboss.forge.addon:as into JBoss Dev Studio 8.1, running embedded Forge 2.12.1 final. The install worked fine. The as-setup command appears to work fine too. But as-deploy returns an error of; ***ERROR*** No running JBoss Application Server could be found at 'localhost:9990'. when there is in fact a running JBoss - I checked that I can connect with telnet Tested with Wildfly 8.1 - same result. What is the best approach to debug this ? Thanks, Posted by forums Original post: https://developer.jboss.org/message/908518#908518