Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUILD FAILED: File names should be in CamelCase #20

Open
JonathanBlood opened this issue Dec 30, 2015 · 0 comments
Open

BUILD FAILED: File names should be in CamelCase #20

JonathanBlood opened this issue Dec 30, 2015 · 0 comments

Comments

@JonathanBlood
Copy link

Environment details:

display:
 [echo] ant.file = D:\Maxims\openMAXIMS-master\Source Library\openmaxims_workspace\WebApp\WebAppBuild.xml
 [echo] ant.home = D:\Program Files (x86)\apache-ant-1.6.5\bin\..
 [echo] ant.project.name = openMAXIMS
 [echo] ant.java.version = 1.5
 [echo] ant.version = Apache Ant version 1.6.5 compiled on June 2 2005
 [echo] basedir = D:\Maxims\openMAXIMS-master\Source Library\openmaxims_workspace\WebApp

Build Error:

ValueObjects:
[javac] Compiling 18147 source files to D:\Maxims\openMAXIMS-master\Source Library\openmaxims_workspace\ValueObjects\bin
[javac] D:\Maxims\openMAXIMS-master\Source Library\openmaxims_workspace\ValueObjects\src\ims\emergency\vo\beans\emergencyepisodeliteVoBean.java:31: error: class EmergencyEpisodeLiteVoBean is public, should be declared in a file named EmergencyEpisodeLiteVoBean.java
[javac] public class EmergencyEpisodeLiteVoBean extends ims.vo.ValueObjectBean
[javac]        ^
[javac] D:\Maxims\openMAXIMS-master\Source Library\openmaxims_workspace\ValueObjects\src\ims\emergency\vo\domain\emergencyepisodeliteVoAssembler.java:43: error: class EmergencyEpisodeLiteVoAssembler is public, should be declared in a file named EmergencyEpisodeLiteVoAssembler.java
[javac] public class EmergencyEpisodeLiteVoAssembler
[javac]        ^
[javac] D:\Maxims\openMAXIMS-master\Source Library\openmaxims_workspace\ValueObjects\src\ims\emergency\vo\emergencyepisodeliteVo.java:34: error: class EmergencyEpisodeLiteVo is public, should be declared in a file named EmergencyEpisodeLiteVo.java
[javac] public class EmergencyEpisodeLiteVo extends ims.core.admin.vo.EmergencyEpisodeRefVo implements ims.vo.ImsCloneable, Comparable
[javac]        ^
[javac] D:\Maxims\openMAXIMS-master\Source Library\openmaxims_workspace\ValueObjects\src\ims\emergency\vo\emergencyepisodeliteVoCollection.java:40: error: class EmergencyEpisodeLiteVoCollection is public, should be declared in a file named EmergencyEpisodeLiteVoCollection.java
[javac] public class EmergencyEpisodeLiteVoCollection extends ims.vo.ValueObjectCollection implements ims.vo.ImsCloneable, Iterable<EmergencyEpisodeLiteVo>
[javac]        ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 4 errors

BUILD FAILED
D:\Maxims\openMAXIMS-master\Source Library\openmaxims_workspace\WebApp\build_common.xml:182: Compile failed; see the compiler error output for details.

Solution:

The solution to this problem is to fix the file names so that it's using CamelCase notation.
For example:

 emergencyepisodeliteVoCollection.java

to

 EmergencyEpisodeLiteVoCollection.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant