GithubHelp home page GithubHelp logo

Comments (11)

byaminov avatar byaminov commented on July 22, 2024

Hi Ivan,

Yes, indeed manifest file is processed now during gradle project evaluation phase. This is done so that if for example you want to put an output of another task into .dar file:

<jee.War name="HelloDeployment" file="${artifact(project.war)}" />

then dar task automatically starts depending on the corresponding output task: war in this example:

> ./gradlew dar
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:war
:dar

If manifest is processed later, e.g. during task execution phase, then it's too late to insert a war task into task graph.

If you really need to generate your manifest files during gradle execution phase, then I could make this configurable in the dar task via an extension or task parameter. But then you would need to manually add dependencies, like "dar.dependsOn war" in my example.

So do you need this evaluateManifestDuringExecutionPhase = true parameter to be implemented in gradle-xld-plugin, or did you manage to solve your situation in a different manner?

from gradle-xld-plugin.

iaon avatar iaon commented on July 22, 2024

Hi Bulat,

Thanks for the explanation. In fact I've solved my problem by Jenkins XLD plugin and some Jenkins jobs, but I don't think it's a good design. I prefer to have all code in the same place.
If you put this task into backlog, it will be very nice.

from gradle-xld-plugin.

byaminov avatar byaminov commented on July 22, 2024

@iaon ok, I'll have a look when I have time.

from gradle-xld-plugin.

iaon avatar iaon commented on July 22, 2024

Thank you!

from gradle-xld-plugin.

ablaagaard avatar ablaagaard commented on July 22, 2024

Hi,
I ran into the same issue - I was trying to create a Gradle plugin that, among other stuff, would generate the deployit-manifest.xml, because I have a lot of projects that have identical deployit-manifest.xml except for the project name and version

from gradle-xld-plugin.

ypersieljp avatar ypersieljp commented on July 22, 2024

Hello, indeed i thought it was the main core idea of the plugin ...
When dev develops they don t care to modify the manifest and it is updated automatically .. and with extra luck if we put a determined template to follow during the build it remember the developer that it forget to use token or put some text files with necessary information ....

from gradle-xld-plugin.

byaminov avatar byaminov commented on July 22, 2024

Hi everybody, I'll see what I can do to make the deployit-manifest.xml "generateable".

from gradle-xld-plugin.

ablaagaard avatar ablaagaard commented on July 22, 2024

Just to clarify - in my case I don't strictly need the deployment manifest to be "generateable", although that would also work, I'm just looking for "shareable"

from gradle-xld-plugin.

byaminov avatar byaminov commented on July 22, 2024

@ablaagaard sharing of deployit-manifest.xml is already possible in current version of the plugin: just configure its location in your build.gradle (also documented in the README):

xldeploy {
    manifest = file('my/shared/deployit-manifest.xml')
}

from gradle-xld-plugin.

byaminov avatar byaminov commented on July 22, 2024

@ypersieljp @iaon @ablaagaard I released a new version of the plugin: 0.3.0 with the ability to generate deployit-manifest.xml.

You can check an example how it's done in this test script. Note however that if the manifest file is generated, the plugin cannot automatically determine if another task generates artifacts for it. So in my example you have to manually specify that dar.dependsOn war.

Please let me know if this works for you!

from gradle-xld-plugin.

jdewinne avatar jdewinne commented on July 22, 2024

Close inactive issue

from gradle-xld-plugin.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.