headwirecom / aemdc Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
File operations are all relative to the startup directory of AEMDC. For IntelliJ this is not going to work.
I added this to the Config:
private static File projectRoot = new File(".");
public static String getProjectRootPath() {
return projectRoot.getPath();
}
To make config work relative to my project but creating components does not work as for example CopyDIrCommand does copy it to the startup folder of IntelliJ. All file operation have to be made relative to a given project root.
Tomorrow I will clean up my changes, create a branch and commit.
in a lazybones project, when using aemdc config the TARGET_JAVA_PACKAGE is created incorrectly
in the stored-params.properties the setting is
slingModelsPackage=com.headwire.aem.base.models
referencing the models package, not the root java package for the project
suggestion:
TARGET_JAVA_PACKAGE set to the parent package of slingModelsPackage
introduction of
TARGET_JAVA_MODEL_PACKAGE set to slingModelsPackage
Nice tool ๐
Playing around w/ it, my biggest challenges were
While i use intellij, i dont customize it too much -- but was wondering if you guys know off the top of your heads if creating a custom external tool config in intellij, and creating commands for atleast some of the more basic stuff (aemdc Model, Servlet, etc.) sounds feasible.
Wanted to just pick your brains before messing around w it.
Generating a safemethods servlet and settings package to "test.two" will create the file inside com.headwire.aemdc.sample.servlets/two but that Servlet's package is set to test.two.
Java Path and Package are both the same (dots -> slashes): com.headwire.aemdc.samples.
I would expect that the file is copied into "com/headwire/aemdc/samples/servlets/test/two" sub folder and package set to "com.headwire.aemdc.samples.servlets.test.two".
While creating a Dialog to let the user edit the aemdc-config.properties I found the structure of that file cumbersome as it does not just contain the changeable values but other tool related items.
I suggest that we change it to a file that only contains configurable items. This way I don't have to search and replace strings in that file but can just write properties-name=properties-value to the file.
These are the values I found so far:
Thanks - Andy
I just downloaded and tried to build aemdc on my Mac OS machine with Java 8. Maven reports:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.0.0:single (resource-zips) on project aemdc: Execution resource-zips of goal org.apache.maven.plugins:maven-assembly-plugin:3.0.0:single failed: group id '334330370' is too big ( > 2097151 ). Use STAR or POSIX extensions to overcome this limit -> [Help 1]
The problem is that some users get very large group id's. The solution is to use posix mode as noted in maven-assembly-plugin doc
Using MainApp.getScene() and adding it to a JFXPanel shows one view. Removing the enclosing Swing component and reading to a TabbedPane or hiding / showing the View makes the scene appear twice (side by side). I could fix the tab issue by re-creating the JFX Panel but the hiding and showing the view is not calling my container.
There are two different issues with the System Out / Err redirection when using AEMDC inside IntelliJ:
In IntelliJ there are dependencies that write to the System Out / Err which are not inside a JavaFX thread causing unexpected exceptions and making the plugin fail
The redirect is redirecting output that does not belong to AEMDC and hide it from the Plugin console.
Contemplating multiple solutions I thing this might be the right one:
Let me know if that works for you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.