Change to Ant's build

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Change to Ant's build

vmassol
Administrator
Hi there,

As I'm porting our build to Maven2, I noticed the following in our Ant's
build.xml:

        <copy todir="${build.dir}/web/WEB-INF/classes">
            <fileset dir="${build.dir}/web/WEB-INF">
                <include name="hibernate.cfg.xml" />
            </fileset>
        </copy>

I was surprised to see that we need the hibernate config file in 2 places. I
would have thought that having it in WEB-INF would be enough and that if we
needed to parse it from inside xwiki we could use:
getServletContext().getResource("/WEB-INF/hibernate.cfg.xml");

I've chatted with Ludovic yesterday and he said that he doesn't think we
need the one in classes/.

Thus I'm going to try removing it. Unfortunately I don't know if we have
functional tests to prove that it still works so it's possible I'm going to
break something which is why I'm recoding what I'm doing here.

Ideally our CI should run functional tests and let us know if something is
broken...

Thanks
-Vincent




       

       
               
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws