Re: How to maintain *.java and *.form in different directories?
On 18.10.22 19:24, Thorsten Schöning wrote: But images referenced in the *.form files should work in "resources", correct? If i remember correctly, GUI designer and *.form files have nothing to do at all with the build process (in the sense of Gradle), it is part of generating sources and happens before build, so accessing images in forms is all about adapting relative paths to images (if needed) … Bernd - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to maintain *.java and *.form in different directories?
Guten Tag Neil C Smith, am Mittwoch, 19. Oktober 2022 um 14:27 schrieben Sie: > Either we're using different definitions, or there's something odd in > your configuration.[...] I repeated my tests and *.form files are not deployed by default, as long as they are stored alongside *.java. I placed them in "resources" next to images for test purposes and moved them back at some point, though they were still part of the resulting JAR sometimes. But I might have simply made something different wrong, now with closed IDE and stuff the files are not part fo the JAR. >> But images referenced in the *.form files should work in "resources", >> correct? > Do they not? It seems to work in the IDE, but the goal is a test and deployment pipeline without the IDE and am not there yet to test it myself. Therefore I hoped someone could tell me beforehand if I'm doing things entirely wrong or expecting too much or ... :-) Mit freundlichen Grüßen Thorsten Schöning -- AM-SoFT IT-Service - Bitstore Hameln GmbH Mitglied der Bitstore Gruppe - Ihr Full-Service-Dienstleister für IT und TK E-Mail: thorsten.schoen...@am-soft.de Web:http://www.AM-SoFT.de/ Tel: +49 5151- 9468- 0 Tel: +49 5151- 9468-55 Mobil: +49 178-8 9468-04 AM-SoFT IT-Service - Bitstore Hameln GmbH, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 221853 - Geschäftsführer: Janine Galonska Für Rückfragen stehe ich Ihnen jederzeit zur Verfügung. Mit freundlichen Grüßen, Thorsten Schöning Telefon: +49 5151 9468-55 Fax: E-Mail: tschoen...@am-soft.de AM-Soft IT-Service - Bitstore Hameln GmbH Brandenburger Straße 7c 31789 Hameln Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen und ist ausschliesslich für den Adressaten bestimmt. Jeglicher Zugriff auf diese E-Mail durch andere Personen als den Adressaten ist untersagt. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, ist Ihnen jede Veröffentlichung, Vervielfältigung oder Weitergabe wie auch das Ergreifen oder Unterlassen von Massnahmen im Vertrauen auf erlangte Information untersagt. This e-mail may contain confidential and/or privileged information and is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Hinweise zum Datenschutz: bitstore.group/datenschutz - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to maintain *.java and *.form in different directories?
On Wed, 19 Oct 2022 at 13:29, Bernd Michaely wrote: > In doubt *.form files could be deleted from the build dir after > compilation and before deployment, e.g. using doFirst in the deployment > task, something like this: .. > (never tried that myself…) So did you check if they're in there to start with? That was the point of my question, and why I'd be interested to see a project shared where that is the case. Best wishes, Neil - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to maintain *.java and *.form in different directories?
Indeed Gradle keeps different types of files like sources and resources in different subdirectories. *.form files are another type of files, which are created and needed even before compilation and are not to be deployed, so they would reside in their own subdirectory aside sources and resources. Gradle would need to be configured so that NB will find them despite being in a different dir (don't know if that is possible), and to exclude them from deployment… In doubt *.form files could be deleted from the build dir after compilation and before deployment, e.g. using doFirst in the deployment task, something like this: https://docs.gradle.org/current/userguide/common_caching_problems.html#custom_actions (never tried that myself…) Bernd On 18.10.22 18:57, Neil C Smith wrote: On Tue, 18 Oct 2022 at 17:51, Thorsten Schöning wrote: Mostly that non-Java is exactly what is meant to be maintained in "resources". There's not that much difference between images or XML form files. This might even allow to not publish those files as part of the deployment, configure different set of rules in IDEs etc. There's a massive difference between images and .form files - .form files are not meant to be published as part of the deployment. Also, as far as NetBeans is concerned, they are one file - pros and cons to that. Neil - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to maintain *.java and *.form in different directories?
On Tue, 18 Oct 2022 at 18:24, Thorsten Schöning wrote: > > Guten Tag Neil C Smith, > am Dienstag, 18. Oktober 2022 um 18:57 schrieben Sie: > > > There's a massive difference between images and .form files - .form > > files are not meant to be published as part of the deployment. > > But they are when using Gradle. Either we're using different definitions, or there's something odd in your configuration. I suggest sharing a simple project that illustrates the problem. > > Also, as far as NetBeans is concerned, they are one file - pros and > > cons to that. > > But images referenced in the *.form files should work in "resources", > correct? Do they not? Neil - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to maintain *.java and *.form in different directories?
Guten Tag Neil C Smith, am Dienstag, 18. Oktober 2022 um 18:57 schrieben Sie: > There's a massive difference between images and .form files - .form > files are not meant to be published as part of the deployment. But they are when using Gradle. > Also, as far as NetBeans is concerned, they are one file - pros and > cons to that. But images referenced in the *.form files should work in "resources", correct? Mit freundlichen Grüßen Thorsten Schöning -- AM-SoFT IT-Service - Bitstore Hameln GmbH Mitglied der Bitstore Gruppe - Ihr Full-Service-Dienstleister für IT und TK E-Mail: thorsten.schoen...@am-soft.de Web:http://www.AM-SoFT.de/ Tel: +49 5151- 9468- 0 Tel: +49 5151- 9468-55 Mobil: +49 178-8 9468-04 AM-SoFT IT-Service - Bitstore Hameln GmbH, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 221853 - Geschäftsführer: Janine Galonska Für Rückfragen stehe ich Ihnen jederzeit zur Verfügung. Mit freundlichen Grüßen, Thorsten Schöning Telefon: +49 5151 9468-55 Fax: E-Mail: tschoen...@am-soft.de AM-Soft IT-Service - Bitstore Hameln GmbH Brandenburger Straße 7c 31789 Hameln Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen und ist ausschliesslich für den Adressaten bestimmt. Jeglicher Zugriff auf diese E-Mail durch andere Personen als den Adressaten ist untersagt. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, ist Ihnen jede Veröffentlichung, Vervielfältigung oder Weitergabe wie auch das Ergreifen oder Unterlassen von Massnahmen im Vertrauen auf erlangte Information untersagt. This e-mail may contain confidential and/or privileged information and is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Hinweise zum Datenschutz: bitstore.group/datenschutz - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to maintain *.java and *.form in different directories?
On Tue, 18 Oct 2022 at 17:51, Thorsten Schöning wrote: > Mostly that non-Java is exactly what is meant to be maintained in > "resources". There's not that much difference between images or XML > form files. This might even allow to not publish those files as part > of the deployment, configure different set of rules in IDEs etc. There's a massive difference between images and .form files - .form files are not meant to be published as part of the deployment. Also, as far as NetBeans is concerned, they are one file - pros and cons to that. Neil - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to maintain *.java and *.form in different directories?
Guten Tag László Kishalmi, am Dienstag, 18. Oktober 2022 um 18:27 schrieben Sie: > Just would like to know what is the motivation behind separating the java > and the form files? Mostly that non-Java is exactly what is meant to be maintained in "resources". There's not that much difference between images or XML form files. This might even allow to not publish those files as part of the deployment, configure different set of rules in IDEs etc. OTOH, isn't that much of a big deal. But as images seems to be maintained using classloader resources, I thought it might be wort a try. Mit freundlichen Grüßen Thorsten Schöning -- AM-SoFT IT-Service - Bitstore Hameln GmbH Mitglied der Bitstore Gruppe - Ihr Full-Service-Dienstleister für IT und TK E-Mail: thorsten.schoen...@am-soft.de Web:http://www.AM-SoFT.de/ Tel: +49 5151- 9468- 0 Tel: +49 5151- 9468-55 Mobil: +49 178-8 9468-04 AM-SoFT IT-Service - Bitstore Hameln GmbH, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 221853 - Geschäftsführer: Janine Galonska Für Rückfragen stehe ich Ihnen jederzeit zur Verfügung. Mit freundlichen Grüßen, Thorsten Schöning Telefon: +49 5151 9468-55 Fax: E-Mail: tschoen...@am-soft.de AM-Soft IT-Service - Bitstore Hameln GmbH Brandenburger Straße 7c 31789 Hameln Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen und ist ausschliesslich für den Adressaten bestimmt. Jeglicher Zugriff auf diese E-Mail durch andere Personen als den Adressaten ist untersagt. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, ist Ihnen jede Veröffentlichung, Vervielfältigung oder Weitergabe wie auch das Ergreifen oder Unterlassen von Massnahmen im Vertrauen auf erlangte Information untersagt. This e-mail may contain confidential and/or privileged information and is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Hinweise zum Datenschutz: bitstore.group/datenschutz - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to maintain *.java and *.form in different directories?
Hi there, Just would like to know what is the motivation behind separating the java and the form files? On Tue, Oct 18, 2022 at 9:12 AM Thorsten Schöning wrote: > Hi everyone, > > I would like to switch historically grown projects in NetBeans own > directory layout with its own settings files to Gradle using the > common distinction of Java source files vs. resources of other kinds. > Currently I have a mixup of Java files, assoicted *.form files for the > UI designer and even images. > > I've already moved *.form files etc. from \src\foo\bar\*.form to > \src\main\resources\foo\bar\*.form. And while that seems to even > produce some result with Gradle, the UI designer in NetBeans doesn't > recognize that layout anymore and doesn't provide the "Design" > interface for some class. Only "Source" and "History". If I move > *.form back to the directory of the *.java, the "Design" interface is > shown again. > > Though, it seems the images can be placed in "resources". During my > tests I kept those there and the designer nevertheless showed all of > them. I guess this is because the corresponding XML *.form files > contain the following paths, which are resolved using the classloader > in the end: > > > editor="org.netbeans.modules.form.editors2.IconEditor"> > > > > > > So, is there any way to make NetBeans work the same with the *.form > files? Thanks! > > Mit freundlichen Grüßen > > Thorsten Schöning > > -- > AM-SoFT IT-Service - Bitstore Hameln GmbH > Mitglied der Bitstore Gruppe - Ihr Full-Service-Dienstleister für IT und TK > > E-Mail: thorsten.schoen...@am-soft.de > Web:http://www.AM-SoFT.de/ > > Tel: +49 5151- 9468- 0 > Tel: +49 5151- 9468-55 > Mobil: +49 178-8 9468-04 > > AM-SoFT IT-Service - Bitstore Hameln GmbH, Brandenburger Str. 7c, 31789 > Hameln > AG Hannover HRB 221853 - Geschäftsführer: Janine Galonska > > > Für Rückfragen stehe ich Ihnen jederzeit zur Verfügung. > > Mit freundlichen Grüßen, > > Thorsten Schöning > > > Telefon: +49 5151 9468-55 > Fax: > E-Mail: tschoen...@am-soft.de > > AM-Soft IT-Service - Bitstore Hameln GmbH > Brandenburger Straße 7c > 31789 Hameln > > Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte > Informationen und ist ausschliesslich für den Adressaten bestimmt. > Jeglicher Zugriff auf diese E-Mail durch andere Personen als den Adressaten > ist untersagt. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail > irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und > vernichten Sie diese E-Mail. Sollten Sie nicht der für diese E-Mail > bestimmte Adressat sein, ist Ihnen jede Veröffentlichung, Vervielfältigung > oder Weitergabe wie auch das Ergreifen oder Unterlassen von Massnahmen im > Vertrauen auf erlangte Information untersagt. > > This e-mail may contain confidential and/or privileged information and is > intended solely for the addressee. Access to this email by anyone else is > unauthorized. If you are not the intended recipient (or have received this > e-mail in error) please notify the sender immediately and destroy this > e-mail. If you are not the intended recipient, any disclosure, copying, > distribution or any action taken or omitted to be taken in reliance on it, > is prohibited and may be unlawful. > > Hinweise zum Datenschutz: bitstore.group/datenschutz > > > > > - > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > For additional commands, e-mail: users-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >