Comments (4)
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.
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.
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.
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)
- Improve code coverage on Collections classes
- Gradle plugin HOT 6
- Stream counter-examples.
- Cascading Implementation Impurity
- Error Message Improvement
- What about Guava Immutable Collections? HOT 7
- Rename and Move annotations to strengthen idea that they are pure
- Annotation for specifying that an implementation function must be pure HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pure4j.