3 Replies Latest reply on Feb 28, 2005 2:08 PM by Andrew Oliver

    Who broke the build?  (SMACK!)

    Andrew Oliver Master

      BTW developers should use some target other than "dist" to do their work and keep that up to what they need and not modify dist to their needs....you know who you are... ;-)

      Andrew-Olivers-Computer:~/projects/jboss/jboss-mail/head/jboss-mail acoliver$ ant dist
      Buildfile: build.xml

      clean:
      [delete] Deleting directory /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/hbm

      prepare:
      [echo] jbhome=/Users/andrewoliver/projects/jboss/test/current/
      [mkdir] Created dir: /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/build
      [mkdir] Created dir: /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/build/classes
      [mkdir] Created dir: /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/build/test/classes
      [mkdir] Created dir: /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/build/lib
      [mkdir] Created dir: /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/build/deploy
      [mkdir] Created dir: /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/hbm

      compile:
      [echo] sourcedir = /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src
      [echo] sourcejavadir = /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java
      [javac] Compiling 217 source files to /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/build/classes

      BUILD FAILED
      /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/build.xml:429: /Users/andrewoliver/projects/jboss/test/current/lib not found.

        • 1. Re: Who broke the build?  (SMACK!)
          Andrew Oliver Master

          nevermind.... I'm an idiot... I didn't set JBOSS_HOME ;-)

          Here is the real build break:

          compile:
          [echo] sourcedir = /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src
          [echo] sourcejavadir = /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java
          [javac] Compiling 217 source files to /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/build/classes
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:17: package net.sf.hibernate does not exist
          [javac] import net.sf.hibernate.Criteria;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:18: package net.sf.hibernate does not exist
          [javac] import net.sf.hibernate.Query;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:19: package net.sf.hibernate does not exist
          [javac] import net.sf.hibernate.Session;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:20: package net.sf.hibernate does not exist
          [javac] import net.sf.hibernate.Transaction;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/util/HibernateUtil.java:13: package net.sf.hibernate does not exist
          [javac] import net.sf.hibernate.HibernateException;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/util/HibernateUtil.java:14: package net.sf.hibernate does not exist
          [javac] import net.sf.hibernate.Session;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/util/HibernateUtil.java:15: package net.sf.hibernate does not exist
          [javac] import net.sf.hibernate.SessionFactory;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/util/HibernateUtil.java:16: package net.sf.hibernate does not exist
          [javac] import net.sf.hibernate.Transaction;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/util/HibernateUtil.java:50: cannot resolve symbol
          [javac] symbol : class Session
          [javac] location: class org.jboss.mail.util.HibernateUtil
          [javac] public static Session getSession() throws NamingException,
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/util/HibernateUtil.java:51: cannot resolve symbol
          [javac] symbol : class HibernateException
          [javac] location: class org.jboss.mail.util.HibernateUtil
          [javac] HibernateException {
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/util/HibernateUtil.java:64: cannot resolve symbol
          [javac] symbol : class Session
          [javac] location: class org.jboss.mail.util.HibernateUtil
          [javac] public static void safeCloseSession(Logger log, Session session) {
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/util/HibernateUtil.java:85: cannot resolve symbol
          [javac] symbol : class Transaction
          [javac] location: class org.jboss.mail.util.HibernateUtil
          [javac] public static void safeCommit(Logger log, Transaction tx) {
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/util/HibernateUtil.java:107: cannot resolve symbol
          [javac] symbol : class Transaction
          [javac] location: class org.jboss.mail.util.HibernateUtil
          [javac] public static void safeRollback(Logger log, Transaction tx) {
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:61: cannot resolve symbol
          [javac] symbol : class Session
          [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
          [javac] Session session = null;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:62: cannot resolve symbol
          [javac] symbol : class Transaction
          [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
          [javac] Transaction tx = null;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:68: cannot resolve symbol
          [javac] symbol : class Criteria
          [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
          [javac] Criteria crit = session.createCriteria(HnStoredMessage.class);
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:93: cannot resolve symbol
          [javac] symbol : class Session
          [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
          [javac] Session session = null;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:94: cannot resolve symbol
          [javac] symbol : class Transaction
          [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
          [javac] Transaction tx = null;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:100: cannot resolve symbol
          [javac] symbol : class Query
          [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
          [javac] Query q = session
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:126: cannot resolve symbol
          [javac] symbol : class Session
          [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
          [javac] Session session = null;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:127: cannot resolve symbol
          [javac] symbol : class Transaction
          [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
          [javac] Transaction tx = null;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:154: cannot resolve symbol
          [javac] symbol : class Session
          [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
          [javac] Session session = null;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:155: cannot resolve symbol
          [javac] symbol : class Transaction
          [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
          [javac] Transaction tx = null;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:191: cannot resolve symbol
          [javac] symbol : class Session
          [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
          [javac] Session session = null;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:192: cannot resolve symbol
          [javac] symbol : class Transaction
          [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
          [javac] Transaction tx = null;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:221: cannot resolve symbol
          [javac] symbol : class Session
          [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
          [javac] Session session = null;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/msgstore/hn/HnMessageStore.java:222: cannot resolve symbol
          [javac] symbol : class Transaction
          [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
          [javac] Transaction tx = null;
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/util/HibernateUtil.java:53: cannot resolve symbol
          [javac] symbol : class SessionFactory
          [javac] location: class org.jboss.mail.util.HibernateUtil
          [javac] SessionFactory fact = (SessionFactory) ctx.lookup(HIBERNATE_SESSION_FACTORY);
          [javac] ^
          [javac] /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/src/java/org/jboss/mail/util/HibernateUtil.java:53: cannot resolve symbol
          [javac] symbol : class SessionFactory
          [javac] location: class org.jboss.mail.util.HibernateUtil
          [javac] SessionFactory fact = (SessionFactory) ctx.lookup(HIBERNATE_SESSION_FACTORY);
          [javac] ^
          [javac] 29 errors

          BUILD FAILED
          /Users/acoliver/projects/jboss/jboss-mail/head/jboss-mail/build.xml:429: Compile failed; see the compiler error output for details.


          SMACK!

          • 2. Re: Who broke the build?  (SMACK!)
            Andrew Oliver Master

            okay fixed that by adding junit.jar to the lib... . We have other problems with build/etc...looks like the hibernate stuff is putting generated stuff in src (bad bad bad)

            • 3. Re: Who broke the build?  (SMACK!)
              Andrew Oliver Master

              WHooohooo! a few commits latter and the head builds again and even installs!