I'm writing a custom Grails 2 plugin to modularize my Grails applications. In the plugin I'm planning to define basic GSPs that can be overridden by the application that will utilize the plugin. I'm thinking of writing a Grails command script that copies those GSPs into the grails-app directory of the app the plugin is installed in. If in the plugin, I put those GSPs in grails-app/views, how do I refer to the actual Grails app directory in the Grails command script, which is also grails-app/views?
How to copy Grails 2 plugin resources to the Grails app?
96 views Asked by Psycho Punch At
1
There are 1 answers
Related Questions in GRAILS
- Table UserRole not populated in Grails 6
- Grails run-app or grails compile is not working with 6..0.0( java 11 or 17)
- Hibernate OptimisticLocking(type = OptimisticLockType.DIRTY) not working
- HibernateOptimisticLockingFailureException in Groovy / Grails, how to proceed after recovry
- Grails with Spring Security: How do I keep a password history to prevent password reuse
- How can I configure a Grails application using the Spring Security Rest plugin to authenticate with Amazon Cognito
- Grails - Problem to Exclude a Filter from Specific Endpoints
- Why are my beans disabled onStartUp after upgrading to grails5?
- Getting error on upgrading mysql 8 with grails 2.4.3
- get XFF using angular
- how to compare to collections of map in groovy
- Grail/GORM Data Service @Query - Join with Multiple Conditions
- Build Grails project with specific environment
- Grails params in controller empty on too large post request
- Grails5 upgrade - hibernate now returning a hibernate proxy instead of actual object - why?
Related Questions in GRAILS-PLUGIN
- Table UserRole not populated in Grails 6
- Grails project on file change restarts tomcat flushes out session data
- Grails 3.017 not showing the fields of the domain class fields in localhost 8080
- Grails Mail plugin headers is not correctly generated
- Grails sortableColumn is refreshing page instead of container
- Error | Failed to resolve dependencies in grails-app
- Could not get resource 'https://nodejs.org/dist/v14.19.3/ivy.xml'
- Grails Field Plugin: how to access bean from custom layout template for f:display tag
- How to configure grails-spring-security-saml plugin version 5.0.0-RC3 for https applications
- How to implement concurrent session filter in grails to handle multiple login session?
- Groovy files from a plugin
- grails push notification from one user to another
- grails 5 web-plugin profile throwing missing ServletWebServerFactory bean
- Grails project after deploy to heroku JSESSIONID cookie attribute secure is not set
- Grails 5 multi module project recompile failed
Related Questions in GRAILS-2.0
- Grails Mail plugin headers is not correctly generated
- RBAC not working for grails default action calling
- How can I enable logging for Spring Security in Grails 2.2.3?
- Error | Failed to resolve dependencies in grails-app
- Access field in multilanguage
- Is it possible to execute a Grails dynamic finder query from JavaScript block
- Grails 2.5 static files with selected content-type
- Upgrade Grails version
- Simulate "No operations allowed after connection closed"
- Error on Building grails 2.3.11 with java 1.7 Resolve error obtaining dependencies: Failed to read artifact descriptor
- Get services extended from a certain interface
- using the criteria for finding data in grails
- grails2.5.0 Unable to download plugin dependencies
- How to Upgrade Grails from Grails 2.4.4 to Grails 4.0.1?
- What is a good mysql grails setting for production?
Related Questions in GRAILS-2.4
- grails module "app-name"-grailsPlugin isn't automatically loaded in IntelliJ on Windows but is on Mac
- Grails 2.4.0 unable to resolve Artifactory descriptor to public repositories since June 4 2021
- JVM Crashing for Grails 2.4.2 application while upgrading from Java 7 to Java 8
- Grails 2.4.4 - How to store config variable at war phase and get it in a Tomcat env?
- how to Upgrade Grails from Grails 2.4.4 to Grails 3.3.6?
- Grail Deep XML Conversion
- Grails Backup email for grails mail plugin
- How to register eureka client from Grails on eureka server in Spring boot
- CSRF-defense using Tokens
- How to create a Rails project along with its database in Rails2?
- How to include gems in the project using Rails 2 and Ruby 1.9.3?
- Generated save SQL for an association class mapped by GORM has correct column name in SELECT clause, but incorrect one in WHERE clause
- Error compiling Grails 2.4.2 application when adding Spring Security Rest plugin to BuildConfig.groovy
- Cache error in Grails 2.4.. application from 2.2.1 to 2.4.0 and getting below exception
- AWS Lex integration with Grails 2.4.4
Related Questions in GANT
- Gantt schedule timeline calendar open calendar open the calendar and drop it to the element
- SSRS Gant Chart, Multiple values
- Trouble with X Axis time units in Gantt charts with Mermaid via DiagrammeR
- How can I show weeks of years in gantt chart report in ssrs?
- Group by many2many field in Gantt/Tree views in Odoo 13?
- Setting colors for gant-chart based on percentage values (Excel)
- Add series / data to highchart gantt from function
- How to create a CLI script for code generation, like what "grails create-controller" does
- How to copy Grails 2 plugin resources to the Grails app?
- How to use non-interactive mode in your own Grails scripts?
- Gant script cacheing causing problems
- Grails gant script to run test cases first and then run the application but It is giving cliScriptException
- Using xmlProperty task with GANT
- Gant by example
- Using a Grails service inside a script
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The solution to this is almost the same as this answer. The built-in properties
basedirand<plugin_name>PluginBaseDirdifferentiate the target app and the plugin directories.