ditaoctavia / pwm

Automatically exported from code.google.com/p/pwm
0 stars 0 forks source link

Cannot build trunk #630

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
OS: Mac OS X 10.10

$ java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

$ ant -buildfile local-build.xml
Buildfile: 
/Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/local-build.xml

init:
     [echo] PWM Build Script
     [echo]  working directory: /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet
     [echo]  
     [echo] settings:
     [echo]  source root: .
     [echo]  destination: ./build
     [echo]  destination war: ./build/pwm.war
     [echo]  build lib: ../supplemental/build/build_lib

compileCode:
    [mkdir] Created dir: /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/build/bin
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/local-build.xml:69: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 386 source files to /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/build/bin
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/src/password/pwm/AlertHandler.java:129: error: diamond operator is not supported in -source 1.5
    [javac]             final Map<String,String> metadata = new LinkedHashMap<>();
    [javac]                                                                   ^
    [javac]   (use -source 7 or higher to enable diamond operator)
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/src/password/pwm/PasswordChangeProgressChecker.java:135: error: diamond operator is not supported in -source 1.5
    [javac]         private final Map<String,ProgressRecord> itemCompletions = new HashMap<>();
    [javac]                                                                                ^
    [javac]   (use -source 7 or higher to enable diamond operator)
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/src/password/pwm/PwmApplication.java:116: error: diamond operator is not supported in -source 1.5
    [javac]     private final Map<Class<? extends PwmService>,PwmService> pwmServices = new LinkedHashMap<>();
    [javac]                                                                                               ^
    [javac]   (use -source 7 or higher to enable diamond operator)
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/src/password/pwm/Validator.java:102: error: multi-catch statement is not supported in -source 1.5
    [javac]             } catch (StringIndexOutOfBoundsException | NumberFormatException e) {
    [javac]                                                      ^
    [javac]   (use -source 7 or higher to enable multi-catch statement)
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/src/password/pwm/VersionChecker.java:209: error: diamond operator is not supported in -source 1.5
    [javac]         final ArrayList<HealthRecord> returnRecords = new ArrayList<>();
    [javac]                                                                     ^
    [javac]   (use -source 7 or higher to enable diamond operator)
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/src/password/pwm/config/ChallengeProfile.java:157: error: diamond operator is not supported in -source 1.5
    [javac]         final List<Challenge> challenges = new ArrayList<>();
    [javac]                                                          ^
    [javac]   (use -source 7 or higher to enable diamond operator)
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/src/password/pwm/config/Configuration.java:113: error: diamond operator is not supported in -source 1.5
    [javac]         final LinkedHashMap<String,LdapProfile> returnList = new LinkedHashMap<>();
    [javac]                                                                                ^
    [javac]   (use -source 7 or higher to enable diamond operator)
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/src/password/pwm/config/FormConfiguration.java:304: error: diamond operator is not supported in -source 1.5
    [javac]         final ArrayList<String> returnList = new ArrayList<>();
    [javac]                                                            ^
    [javac]   (use -source 7 or higher to enable diamond operator)
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/src/password/pwm/config/FormUtility.java:61: error: diamond operator is not supported in -source 1.5
    [javac]         final Map<FormConfiguration, String> returnMap = new LinkedHashMap<>();
    [javac]                                                                            ^
    [javac]   (use -source 7 or higher to enable diamond operator)
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/src/password/pwm/config/FormUtility.java:221: error: multi-catch statement is not supported in -source 1.5
    [javac]                     } catch (ChaiOperationException | ChaiUnavailableException e) {
    [javac]                                                     ^
    [javac]   (use -source 7 or higher to enable multi-catch statement)
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/src/password/pwm/config/LdapProfile.java:38: error: diamond operator is not supported in -source 1.5
    [javac]         final Map<PwmSetting,StoredValue> valueMap = new LinkedHashMap<>();

...    
    [javac]                                                                                         ^
    [javac]   (use -source 7 or higher to enable diamond operator)
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/src/password/pwm/util/localdb/LocalDBAdaptor.java:234: error: diamond operator is not supported in -source 1.5
    [javac]         private final ConcurrentMap<DB, Integer> sizeCache = new ConcurrentHashMap<>();
    [javac]                                                                                    ^
    [javac]   (use -source 7 or higher to enable diamond operator)
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/src/password/pwm/util/localdb/LocalDBCompressor.java:87: error: diamond operator is not supported in -source 1.5
    [javac]         final Map<String,String> tempMap = new LinkedHashMap<>();
    [javac]                                                              ^
    [javac]   (use -source 7 or higher to enable diamond operator)
    [javac] /Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/src/password/pwm/util/localdb/LocalDBStoredQueue.java:117: error: diamond operator is not supported in -source 1.5
    [javac]         final List<Object> returnList = new ArrayList<>();
    [javac]                                                       ^
    [javac]   (use -source 7 or higher to enable diamond operator)
    [javac] 100 errors
    [javac] 4 warnings

BUILD FAILED
/Users/tbruess/projects/test/pwm-read-only/trunk/pwm/servlet/local-build.xml:69:
 Compile failed; see the compiler error output for details.

Total time: 1 second

Any ideas?

Regards,
Thilo

Original issue reported on code.google.com by thilo.br...@gmail.com on 21 Nov 2014 at 11:14

GoogleCodeExporter commented 9 years ago
I'm not sure if Java 8 is supported already. Please try with Java 7.

Original comment by menno.pi...@gmail.com on 27 Nov 2014 at 10:31

GoogleCodeExporter commented 9 years ago
You need to modify your build script.  The minimum java source and target for 
PWM is "1.7".  

Original comment by jrivard on 28 Nov 2014 at 4:13

GoogleCodeExporter commented 9 years ago
I just noticed the local-build.xml is in svn, so I'll update the java/source 
target there.  If your using that script or a copy of it please repull it from 
revision 751.

Original comment by jrivard on 28 Nov 2014 at 4:17

GoogleCodeExporter commented 9 years ago
Thank you!
I already changed this myself but I was wondering if I'm the only one having 
this problem.

Any reasons why build.xml was renamed to loxcal-build.xml last year?

Regards,
Thilo

Original comment by thilo.br...@gmail.com on 1 Dec 2014 at 10:49

GoogleCodeExporter commented 9 years ago
It wasn't.  build.xml was modified to build directly from svn.  build-local.xml 
was a new creation to build from a local source.

Original comment by jrivard on 4 Dec 2014 at 12:58