Closed brucellino closed 10 years ago
We should have a build.xml file which allows the code to be built on Travis.
At the moment, there are 17 ant test errors :
-do-compile: [mkdir] Created dir: /home/travis/build/AAROC/IDPPublic/build/empty [javac] Compiling 10 source files to /home/travis/build/AAROC/IDPPublic/build/web/WEB-INF/classes [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/listeners/CleanerListener.java:12: package javax.servlet does not exist [javac] import javax.servlet.ServletContextEvent; [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/listeners/CleanerListener.java:13: package javax.servlet does not exist [javac] import javax.servlet.ServletContextListener; [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/listeners/CleanerListener.java:22: cannot find symbol [javac] symbol: class ServletContextListener [javac] public class CleanerListener implements ServletContextListener{ [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/listeners/CleanerListener.java:28: cannot find symbol [javac] symbol : class ServletContextEvent [javac] location: class it.infn.ct.security.listeners.CleanerListener [javac] public void contextInitialized(ServletContextEvent sce) { [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/listeners/CleanerListener.java:35: cannot find symbol [javac] symbol : class ServletContextEvent [javac] location: class it.infn.ct.security.listeners.CleanerListener [javac] public void contextDestroyed(ServletContextEvent sce) { [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/actions/ActivateAccount.java:62: cannot access javax.servlet.ServletContext [javac] class file for javax.servlet.ServletContext not found [javac] SessionFactory factory = (SessionFactory) ServletActionContext.getServletContext().getAttribute("IDPPublic.hibernatefactory"); [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/actions/ActivateAccount.java:67: cannot find symbol [javac] symbol : method enableUser(java.lang.String) [javac] location: class it.infn.ct.security.utilities.LDAPUtils [javac] LDAPUtils.enableUser(urer.getUsername()); [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/actions/ActivateAccount.java:70: cannot find symbol [javac] symbol : method getUser(java.lang.String) [javac] location: class it.infn.ct.security.utilities.LDAPUtils [javac] sendMail(LDAPUtils.getUser(urer.getUsername()), true); [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/actions/ActivateAccount.java:74: cannot find symbol [javac] symbol : method getUser(java.lang.String) [javac] location: class it.infn.ct.security.utilities.LDAPUtils [javac] sendMail(LDAPUtils.getUser(urer.getUsername()), false); [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/actions/ExtendAccount.java:142: cannot find symbol [javac] symbol : method getUser(java.lang.String) [javac] location: class it.infn.ct.security.utilities.LDAPUtils [javac] LDAPUser user= LDAPUtils.getUser(username); [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/actions/PassRecovery.java:94: cannot find symbol [javac] symbol : method findUserByMail(java.lang.String) [javac] location: class it.infn.ct.security.utilities.LDAPUtils [javac] user= LDAPUtils.findUserByMail(email); [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/actions/PassRecovery.java:116: cannot find symbol [javac] symbol : method findUserByMail(java.lang.String) [javac] location: class it.infn.ct.security.utilities.LDAPUtils [javac] user= LDAPUtils.findUserByMail(email); [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/actions/PassReset.java:84: cannot find symbol [javac] symbol : method resetPassword(java.lang.String,java.lang.String) [javac] location: class it.infn.ct.security.utilities.LDAPUtils [javac] if(LDAPUtils.resetPassword(user.getUsername(), password)){ [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/utilities/LDAPCleaner.java:87: cannot find symbol [javac] symbol : method getIdPUserList() [javac] location: class it.infn.ct.security.utilities.LDAPUtils [javac] List<LDAPUser> userLst= LDAPUtils.getIdPUserList(); [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/utilities/LDAPCleaner.java:141: cannot find symbol [javac] symbol : method getUser(java.lang.String) [javac] location: class it.infn.ct.security.utilities.LDAPUtils [javac] UserRequest ur= LDAPUtils.getUser(ucu.getUsername()); [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/utilities/LDAPCleaner.java:173: cannot find symbol [javac] symbol : method getUser(java.lang.String) [javac] location: class it.infn.ct.security.utilities.LDAPUtils [javac] UserRequest ur= LDAPUtils.getUser(ucu.getUsername()); [javac] ^ [javac] /home/travis/build/AAROC/IDPPublic/src/java/it/infn/ct/security/utilities/LDAPCleaner.java:174: cannot find symbol [javac] symbol : method disableUser(java.lang.String) [javac] location: class it.infn.ct.security.utilities.LDAPUtils [javac] LDAPUtils.disableUser(ucu.getUsername()); [javac] ^ [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 17 errors
I've added a tomcat server to the travis build environment.
We should have a build.xml file which allows the code to be built on Travis.
At the moment, there are 17 ant test errors :