Git Product home page Git Product logo

Comments (4)

robmoffat avatar robmoffat commented on July 3, 2024

For some reason, I've only just seen this, but yes, this makes a lot of sense. I think this was probably what I had in mind in the first place, but haven't implemented. I will make this configurable so that you can set it up as a file set from the maven plugin: is this what you had in mind?

from pure4j.

idcmp avatar idcmp commented on July 3, 2024

Hi! No worries! It's close - if it's a file, then each module in a multi-module maven build needs to know where that file is (or each module needs to unpack the file from a dependency). In the PMD example up there, the plugin has a dependency on "code-style-requirements" jar file which is built as part of the project (or outside the project). This jar file has a file called "pmd-ruleset.xml" in it which the PMD plugin uses for its rules.

Since most maven projects are multimodule, being able to locate the file can be challenging if it's a file in a fileset.

from pure4j.

robmoffat avatar robmoffat commented on July 3, 2024

Yes, I "fileset" was the wrong term, sorry. Currently, the .pure files are picked up from the class path of the project being compiled. I am thinking you should provide a list of names of other resources on the class path to pick up.

For example, if you had a resource called idcmp.pure in your class path, you could list this in the maven config. Sound ok?

from pure4j.

robmoffat avatar robmoffat commented on July 3, 2024

Ok, I've just committed a change. Please take a look when you have time, it should answer your problem. Look at the pure4j-examples project. In there:
. The pom.xml file now references an example.pure file (in src/main/resources)
. org.pure4j.examples.purelist.SomePureClass demonstrates use of this pure list.

Will do a release if this meets with your approval.

from pure4j.

Related Issues (9)

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.