You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The classes in this project use a different package name `com.helger.jcodemodel` to avoid conflicts
9
5
with other `com.sun.codemodel` instances that might be floating around in the classpath.
@@ -20,12 +16,14 @@ Add the following to your pom.xml to use this artifact:
20
16
<dependency>
21
17
<groupId>com.helger</groupId>
22
18
<artifactId>jcodemodel</artifactId>
23
-
<version>3.4.0</version>
19
+
<version>3.4.1</version>
24
20
</dependency>
25
21
```
26
22
27
23
# News and noteworthy
28
24
25
+
* v3.4.1 - 2022-01-20
26
+
* Extended `JDefinedClass` API to access the contained enum constants
29
27
* v3.4.0 - 2020-05-25
30
28
* Added special top-level construct `JResourceDir` to represent pure resource directories ([issue #74](https://github.com/phax/jcodemodel/issues/74) from @guiguilechat)
31
29
* Added new class `JCodeModelException` as the base class for `JClassAlreadyExistsException` and the new class `JResourceAlreadyExistsException`
@@ -137,6 +135,27 @@ Add the following to your pom.xml to use this artifact:
137
135
* v2.6.4 - 2014-04-10
138
136
* 2013-09-23: Changes from https://github.com/UnquietCode/JCodeModel have been incorporated.
139
137
138
+
## Contribution
139
+
140
+
Pull requests must follow my personal [Coding Styleguide](https://github.com/phax/meta/blob/master/CodingStyleguide.md)
141
+
142
+
### Tabs vs spaces
143
+
144
+
This project uses double-space for indentation. If you want to use tabs, you can ask git to modify the files when commiting them and when pulling them. For this, from your project directory :
145
+
146
+
- edit the file .git/info/attributes to make it contain `*.java filter=tabspace` . This will tell git to apply the script tabspace on the *.java files
147
+
- run `git config filter.tabspace.clean 'expand --tabs=2 --initial'` to ask git to replace tabs with two spaces on commit of *.java files.
148
+
- run `git config filter.tabspace.smudge 'unexpand --tabs=2 --first-only'` to request git to replace double spaces with two tabs on checking a *.java file out.
149
+
150
+
151
+
### Eclipse
152
+
153
+
For eclipse, a formatter xml and a cleanup xml are present in the meta/formatter/eclipse/ directory. You can load them from the "project properties > java code style" settings. Check "Enable project specific settings", then load them.
154
+
155
+
NOTE : you also need to change the save actions to make them meet the clean up actions. Save actions are done even when they are not present in the clean up.
156
+
157
+
158
+
140
159
---
141
160
142
161
My personal [Coding Styleguide](https://github.com/phax/meta/blob/master/CodingStyleguide.md) |
0 commit comments