My gradle war task seems to generate a META-INF in the root of my war file. Is this a bug in gradle?
AFAIK meta-inf doesnt belong in the root of war files.
Here is my build.gradle:
apply plugin:'war'
sourceCompatibility = 1.7
Here is my project layout:
Here is the contents of the war. Notice the META-INF folder
Am I doing something wrong?
Like Jar archives, War archives are expected to have a META-INF/MANIFEST.MF file.
PS: Please do not double-post. I already answered your question at http://forums.gradle.org.
Related
I have a simple javascript projet created using npm. The source code is in a public github repository.
Here is the content of the repository
my-project
src
index.html
app.js
package.json
README.md
In my local environment I run it using lite-server by executing npm run dev.
I create gh-pages branch from my main branch, my code was automatically deployed after but when I visit the page it show the content of the README.md file.
How can I point to my index.html page instead so that my simple website is rendered ?
Do I have to absolutely move my index.html to the root directory ? Or is there other way without changing my project folder structre ?
=============== MY SOLUTION ===============
I just had to copy index.html and app.js at the root of the branch gh-pages.
You can only choose the root folder or /docs from repo settings.
https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site
I am doing a Django Project and I want to store some files (which should be accessible from the project w,r) to some github project as I don't want to store the files and the projects in the same repo.
Any suggestion of doing that?
Let's say, for example, that you want to upload all files with a .css extension to a separate project.
You need to create two files in the root folder of each project. and call them .gitignore
(Don't forget the point at first)
In the repository where you want all files except css files, write in the .gitignore file:
*.css
In the repository where you only want the css files, write in the .gitignore file:
*
!*.css
You will now push the .gitignore files, respectively, to each of the projects you created.
I am using yaml for configuration in a project now I am trying to make egg file of that project and that folder is not available in that egg file.
How to include that folder in egg file.
I am new to ColdFusion 10 and I want to run it on localhost, so I download it and install it and done successfully. Now I want to create file and want to check by running it.
For example my file name is test.cfm so how to run it on localhost and in which folder i should save this file. I have Installed CF 10 in D directory.
D directory
|__ ColdFusion10
Kindly someone tell me how to do it. I dont find any solution, I find solution that use CF Builder but I dont want to install builder.
Please guide me.
Here is your answer
Here is complete structure that will help you to understand
D directory
|__ ColdFusion10
|__cfusion
|__wwwroot
|__ test.cfm
basically you will put your files in wwwroot folder.
hope you will now understand
i need to place some static contents under jetty directory , anybody knows where to place them ?
You can compile the static files in a WAR and deploy the war in your webapps folder. A request for a URL path that matches a path to a file in the WAR is considered a static file. HTH