Calling all Ant developers!!!

greetings to all my fellow Ant developers!!!
I would first of all like to thank all of those who helped me set up Ant. The good news is, last night I tinkered around with a few things, and it is all up and running now smiles
But I have a question about build.xml. BECAUSE, MY HSQLDB DRIVER WAS NOT BEING FOUND DUE TO A POTENTIAL DISCREPANCY BETWEEN THE BUILD.XML I WAS USING FROM THE TEXTBOOK AND THE BUILD.XML THEY USE AT THAT TEXTBOOKS WEBSITE. EVERYONE WHO TOLD ME TO CHANGE MY CLASSPATHS TO FIND THE DRIVER WERE WRONG! I HOPE THIS WAS A GENUINE MISTAKE AND NOT AN ATTEMPT TO SABOTAGE MY PROJECT!!!
anyway guys, below is the build file. The line that is different is the following line.
<include name="*.jar"/>
In the book, this line is:
<include name="**/*.jar"/>
When I use the above, it does not find the hsqldb driver. But when I use the line from the build.xml at the books website (i.e. <include name="*.jar"/>), everything is hunky dory. Can someone please explain to me why so?
Thank you guys.
Yours truly
AU
<?xml version="1.0"?>
<project name="Harnessing Hibernate: The Developer's Notebook"
default="db" basedir=".">
<!-- Set up properties containing important project directories -->
<property name="source.root" value="src"/>
<property name="class.root" value="classes"/>
<property name="lib.dir" value="lib"/>
<property name="data.dir" value="data"/>
<!-- Set up the class path for compilation and execution -->
<path id="project.class.path">
<!-- Include our own classes, of course -->
<pathelement location="${class.root}" />
<!-- Include jars in the project library directory -->
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<target name="db" description="Runs HSQLDB database management UI
against the database file--use when application is not running">
<java classname="org.hsqldb.util.DatabaseManager"
fork="yes">
<classpath refid="project.class.path"/>
<arg value="-driver"/>
<arg value="org.hsqldb.jdbcDriver"/>
<arg value="-url"/>
<arg value="jdbc:hsqldb:${data.dir}/music"/>
<arg value="-user"/>
<arg value="sa"/>
</java>
</target>
</project>

In ant ** means "any path" so "**/*.jar" means any
jar files in a subdirectory under the root directory.
It wouldn't include jar files directly in the base
directory.oh. Well, this is my directory stucture.
I have
C:\Project
C:\Project\src
C:\Project\lib
C:\Project\data
my build.xml is in C:\Project
all my jars are in C:\Project\lib
When I use the build file with (the example from the printed book)
<include name="**/*.jar"/>
the hsqldb driver is not found.
When I use the build file with (the example from the books complimentary website)
<include name="*.jar"/>
it works.
Why? I do not get this!!!

Similar Messages

  • Calling all Oracle Developers in Hungary

    There is an Oracle Tech Day running on Hungary on the 5th May in Budapest. Lots of content that may be of interest. Specifically for the Forms audience, I will be there delivering a masterclass on modernizing Forms, including a look at modernizing Forms to skills to exploit ADF.
    If you are interested in coming along, details can be found at this link
    http://www.oracle.com/webapps/events/EventsDetail.jsp?p_eventId=108263&src=6808180&src=6808180&Act=209

    In ant ** means "any path" so "**/*.jar" means any
    jar files in a subdirectory under the root directory.
    It wouldn't include jar files directly in the base
    directory.oh. Well, this is my directory stucture.
    I have
    C:\Project
    C:\Project\src
    C:\Project\lib
    C:\Project\data
    my build.xml is in C:\Project
    all my jars are in C:\Project\lib
    When I use the build file with (the example from the printed book)
    <include name="**/*.jar"/>
    the hsqldb driver is not found.
    When I use the build file with (the example from the books complimentary website)
    <include name="*.jar"/>
    it works.
    Why? I do not get this!!!

  • IPhone 5S: does anybody has this problem. During a successful voice call all of a sudden people can't hear me while I can hear them

    iPhone 5S: does anybody has this problem. During a successful voice call all of a sudden people can't hear me while I can hear them. Signal is strong and call quality (me hearing the other) is still very good but it looks as if I’m going on mute while I’m not muting my iPhone. When dropping the call and re-dialing it works fine again. It’s a brand new iPhone 5S but it now happened already 4 or 5 times in 2 days.
    It feels like a hardware/iOS problem and not a network issue. It happend with iOS7.03 but I just see 7.0.4 is available so will install that one now.
    Thanks in advance for feedback
    Best regards,
    Marco

    Hello Jeff,
    Thank you for providing so much detail about the issue you are experiencing with the audio on your iPhone.  I would be concerned too if the audio on my iPhone was not working unless using speaker phone.  I found an article with some steps to take when you are experiencing issues like this:
    iPhone: Can't hear through the receiver or speaker
    http://support.apple.com/kb/TS1630
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I delete some emails ,there are moved to trash . I delete them from trash folder too and they still appear in a folder called 'all messages". I repeat the same actions and after a while they appear again!what should i do to delete them permanently??

    I delete some emails ,there are moved to trash . I delete them from trash folder too and they still appear in a folder called 'all messages". I repeat the same actions and after a while they appear again!what should i do to delete them permanently??

    If you are using Apple's Mail app 6.5 is the latest version irrespective of what a previous poster says. It does sound though that you are using a gmail account online via a web browser. Please confirm and fill in missing information.

  • TS1702 I have an iphone and my 2 children have ipods.  all 3 on the same apple id.  when one of their ipods gets a face time call , all 3 devices ring. i dont want to get these face time calls on my iphone or the other ipod .  what is the solution to this

    i have an iphone and my 2 children have ipods. all 3 on the same apple id.  when one ipod gets a facetime call, all 3 devices ring.  how do i prevent all three devices getting the facetime call as it is intended for only one of the ipods?

    You can all have independent AppleIDs for iCloud or iMessage etc, but share the same one for iTunes Store / AppStore purchases.

  • After a recent update, the Bookmarks menu has an extra folder called "All Bookmarks" which appears to be a copy of the bookmarks. It is causing problems and how do I fix it?

    I recently updated Firefox. The Bookmarks menu shows a new menu item called "All Bookmarks". It appears to be a copy of the bookmarks. When I try to add a new bookmark, the All Bookmarks folder is the only one shown in the dialog. I tried deleting the All Bookmarks folder, but then nothing is shown in the dialog when I try to add a new bookmark.
    If I do add a new bookmark, it is put under the All Bookmarks folder and does not show up under the top-level item I want it under. Any ideas about what I can do to fix this.
    The update went normally without my intervention.
    Thanks

    I was able to fix the problem after following the bookmark backup and restore procedures on the following page:
    http://kb.mozillazine.org/Locked_or_damaged_places.sqlite#Problems_limited_to_bookmarks
    I also had to restart Firefox so that the "Bookmark This Page" dialog would show the normal bookmarks.
    Thanks.

  • How to call imported ant target/task in Java

    Hi,
    Can anybody advice me how to call an ant target/task, which is
    "<import/>"ed from another build file, from within Java code?
    Here's my Java code:
    import org.apache.tools.ant.*;
    import java.io.*;
    import java.util.*;
    public class MyTest
    private Project project;
    public void init(String buildFile, String baseDir) throws
    Exception
    project = new Project();
    try { project.init(); }
    catch (BuildException e)
    { throw new Exception("The default task list could not be
    loaded."
    // Set the base directory. If none is given, "." is used.
    if (_baseDir == null) _baseDir=new String(".");
    try { project.setBasedir(_baseDir); }
    catch (BuildException e)
    { throw new Exception("The given basedir doesn't exist, or
    isn't a directory."); }
    if (_buildFile == null) _buildFile=new String("a.xml");
    try { ProjectHelper.getProjectHelper().parse(project, new
    File(_buildFile)); }
    catch (BuildException e)
    { throw new Exception("Configuration file "+_buildFile+" is
    invalid, or cannot be read."); }
    public void runTarget(String _target) throws Exception
    // Test if the project exists
    if (project == null) throw new Exception("No target can be
    launched because the project has not been initialized. Please call the
    'init' method first !");
    // If no target is specified, run the default one.
    if (_target == null) _target = project.getDefaultTarget();
    // Run the target
    try { project.executeTarget(_target); }
    catch (Exception e)
    { throw new Exception(e.getMessage()); }
    public static void main(String args[])
    try{
    MyTest mytest=new MyTest();
    mytest.init("c.xml",".");
    mytest.runTarget(null);
    }catch(Exception e)
    e.printStackTrace();
    Here are my build files: (they look almost the same. But it's only to see if <import> works.)
    1.c.xml:
    <project basedir="." default="runtests" name="TestC">
    <import file="a.xml"/>
    </project>
    2. a.xml:
    <project basedir="." default="runtests" name="TestA">
    <target name="runtests" depends="">
    <mkdir dir="ttt"/>
    </target>
    </project>
    If I directly set build file "a.xml" in MyTest.java, everthing works
    well. However, if set "c.xml" then do task "<mkdir dir="ttt"/>" defined
    in "a.xml" which was imported by "c.xml", when running, I got an
    exception. Looks like it can't parse my c.xml which include "import".
    BTW, I'm using ant 1.6.2, and running "ant -f c.xml" was ok.
    Did I miss any classpath or something? Any idea?
    Thanks,
    Amy

    I have a standard Ant build script for signing a jar file. I import it into my master Ant build files with
    <import file="Sign.xml"/>
    and then in my master Ant script I setup the name of the jar file e.g.
    <property name="jar-file" value="${fun}/FunApplet.jar"/>
    and then invoke a target
    <target name="sign-jar" depends="jar, sign">
    </target>
    Since this target (sign-jar) depends on target 'jar' and target 'sign' it executes the 'jar' target and then the 'sign' target that is contained in Sign.xml.

  • Calling all Dell L501X owners! [Solved]

    Calling all Dell L501X owners! Specifically the i7 with Nvidia GT435
    Can anyone  comment on if they are having any issues running dual monitors with KDE?
    My issue is that the 'org.kde.powerdevil.backlighthelper' is called randomly and switches the displays LVDS + DP1 between cloned and singular when I've had it set to extended via both TwinView and randr.
    I'm now running XFCE without problems but its bugging me that I can't use KDE.
    My initial post was placed here https://bbs.archlinux.org/viewtopic.php?id=162545 but I have created this to try and find where the peculiarities lie. I'm connected to a Dell U2311 monitor via DisplayPort
    Last edited by Hutchism (2013-05-30 14:27:20)

    Problem fixed now as mentioned in other post. Seems that it doesn't like the function keys been set to default as opposed to the media keys in the BIOS settings. Hope this helps someone in the future. Surprised no-one else has run across this problem.
    If anyone know of a fix for this would be appreciated. Save me from doing yoga with my fingers when trying to do simple keyboard shortcuts. Currently using latest Dell BIOS "A04" (http://www.dell.com/support/drivers/us/ … erId=K5CNF)
    Last edited by Hutchism (2013-05-30 11:12:17)

  • SQLException: After clearParameters() has been called, all parameters must be reset before executing

    Hi,
    I am running: Weblogic 6.1, SP2
    Driver : weblogic.jdbc.oci.Driver
    Reason for not using the "thin" driver, which works, is limit
    on size of Clob
    Previous references to this problem in this newsgroup indicate driver problems
    with older versions of WL.. I am using the latest..
    The SQLException I get is "After clearParameters() has been called, all parameters
    must be reset before executing". This happens the second time the code below is
    excuted ( ok the first time )
    "clearParameters()" is never called explicitly in my code.
    The exception occurs on the "spFunc.execute();" statement at the very end of this
    code:
    // OBS:connection, conn_, is opened from a connection pool
    before this code is called and cloesed afterwards.
    conn_.setAutoCommit(false);
    // ============== Initializing clob ==================
    SerialStatement stmt = (SerialStatement)conn_.createStatement();
    stmt.execute("INSERT INTO lc_clob_temp VALUES (1, EMPTY_CLOB())");
    // OBS: using a prepared statement here will result in SerialClob
    // exception when using setClob in the prepared statement
    below
    // This is probably a bug ( worked in WL 5.1 ). We had this
    as a support case 270952 with WebLogic.
    stmt.execute("SELECT * FROM lc_clob_temp WHERE id = 1");
    ResultSet crs = stmt.getResultSet();
    weblogic.jdbc.rmi.SerialClob xmlClob = null;
    while ( crs.next() ) {
    xmlClob=(weblogic.jdbc.rmi.SerialClob)crs.getClob("newclob");
    // Call Oracle's stored procedure for calling Oracle XSU.
    SerialCallableStatement spFunc =
    (SerialCallableStatement)conn_.prepareCall(
    "declare " +
    "insCtx sys.DBMS_XMLSave.ctxType; " +
    "begin " +
    "insCtx := sys.DBMS_XMLSave.newContext(?); " +
         "sys.DBMS_XMLSave.setBatchSize(insCtx,0);" +      "sys.DBMS_XMLSave.setCommitBatch(insCtx,
    0);" +
    "? := sys.DBMS_XMLSave.insertXML(insCtx,?); " +
    "sys.DBMS_XMLSave.closeContext(insCtx); " +
    "end;"
    spFunc.setString(1, viewName );
    spFunc.registerOutParameter (2, Types.NUMERIC);
    Writer outstream = xmlClob.getCharacterOutputStream();
    outstream.write(xml.toString());
    outstream.flush();
    outstream.close();
    spFunc.setClob( 3, xmlClob);
    spFunc.execute();
    spFunc.close();

    Hi,
    I am running: Weblogic 6.1, SP2
    Driver : weblogic.jdbc.oci.Driver
    Reason for not using the "thin" driver, which works, is limit
    on size of Clob
    Previous references to this problem in this newsgroup indicate driver problems
    with older versions of WL.. I am using the latest..
    The SQLException I get is "After clearParameters() has been called, all parameters
    must be reset before executing". This happens the second time the code below is
    excuted ( ok the first time )
    "clearParameters()" is never called explicitly in my code.
    The exception occurs on the "spFunc.execute();" statement at the very end of this
    code:
    // OBS:connection, conn_, is opened from a connection pool
    before this code is called and cloesed afterwards.
    conn_.setAutoCommit(false);
    // ============== Initializing clob ==================
    SerialStatement stmt = (SerialStatement)conn_.createStatement();
    stmt.execute("INSERT INTO lc_clob_temp VALUES (1, EMPTY_CLOB())");
    // OBS: using a prepared statement here will result in SerialClob
    // exception when using setClob in the prepared statement
    below
    // This is probably a bug ( worked in WL 5.1 ). We had this
    as a support case 270952 with WebLogic.
    stmt.execute("SELECT * FROM lc_clob_temp WHERE id = 1");
    ResultSet crs = stmt.getResultSet();
    weblogic.jdbc.rmi.SerialClob xmlClob = null;
    while ( crs.next() ) {
    xmlClob=(weblogic.jdbc.rmi.SerialClob)crs.getClob("newclob");
    // Call Oracle's stored procedure for calling Oracle XSU.
    SerialCallableStatement spFunc =
    (SerialCallableStatement)conn_.prepareCall(
    "declare " +
    "insCtx sys.DBMS_XMLSave.ctxType; " +
    "begin " +
    "insCtx := sys.DBMS_XMLSave.newContext(?); " +
         "sys.DBMS_XMLSave.setBatchSize(insCtx,0);" +      "sys.DBMS_XMLSave.setCommitBatch(insCtx,
    0);" +
    "? := sys.DBMS_XMLSave.insertXML(insCtx,?); " +
    "sys.DBMS_XMLSave.closeContext(insCtx); " +
    "end;"
    spFunc.setString(1, viewName );
    spFunc.registerOutParameter (2, Types.NUMERIC);
    Writer outstream = xmlClob.getCharacterOutputStream();
    outstream.write(xml.toString());
    outstream.flush();
    outstream.close();
    spFunc.setClob( 3, xmlClob);
    spFunc.execute();
    spFunc.close();

  • How to call Jakarta Ant via JAVA?

    Hi.
    My application has a new menu. This menu creates a build.xml Ant file.
    Now, when this menu is invoked , its action should call
    Jakarta Ant, after creating the xml file, so that the build.xml will
    do what is necessary.
    How can I do it? That is, how to call the Ant via java?
    Is there any way to use an Ant object?
    Thanks?
    Rodrigo Pimenta Carvalho.

    There is a slight problem in that
    PorjectHelper.configureProject is deprecated, but
    that is what Main calls...maybe someone else will
    complete this thread with an alternative call.The javadoc recommends using the non static method parse() instead. This is available by implementing class ProjectHelperImpl. An alternative to the code above might look like this:
            Project ant = new Project();
            ProjectHelper helper = new ProjectHelperImpl();
            ant.init();
            helper.parse(ant, new File("build.xml"));
            ant.executeTarget("clean");you might also want to add a logger so you can see the output of events generated by ant. The DefaultLogger class would be used like this. Simply add the code before you call the ant.init().
            DefaultLogger log = new DefaultLogger();
            log.setErrorPrintStream(System.err);
            log.setOutputPrintStream(System.out);
            log.setMessageOutputLevel(Project.MSG_INFO);
            ant.addBuildListener(log);

  • Call all instances of a symbol

    Hej,
    i need to place 10 different kinds of symbols, a hundred times each on my stage. Theses symbols have the same shape, but different colors. I need to filter them out in a tiny top-menu.
    So, if i click e.g. on a red circle, i want all non red symbols to set there opacity to 0.5.
    It could be simple if i place all red symbols into a container "$color-symbols" and set the opacity to them. But that is not possible, because I need to place each symbol manually. And if they are childs of another symbol, drag and drop is horrible.
    Now i am wondering if it is possible to call all symbols on stage that are instances of a symbol in my library.
    And is there a nice way to call "all-other-colors" instead of
    sym.$("color-1").animate({opacity:0.5},500);
    sym.$("color-9").animate({opacity:0.5},500);
    sym.$("my-own-color").animate({opacity:1},500);
    on every button on stage?

    Thanks for your help,
    i use the classes to specify a target url for each symbol.
    For Example:
    I have three red symbols and three blue symbols.
    The classes for the red-ones are:
    33451, 56789 and 45678
    for the blue ones:
    983, 4, 1002
    Inside of my symbols i have a script:
    var names = (e.target.id).split("_");
    var page = names[2];
    var link = "http://www.url.no/subpage/"+page;
    window.open(link, "_self");
    If i find another way to put a specific ID (and it must be a number) on to each Instance, i could use the way you describe.
    Because your idea is to use the class-names, there is no way to call all instances of a given symbol?
    Is it possible to use wildcards for my array?
    So i could name them "red-33451#1", "red-56789#2", "red-45678#3". And cut out everything between "-" and "#".
    But remember that i need to place a few hundreds of them, which isn't fun. And if i need to insert one later or if i delete another one, i need to verify all my functions.

  • Call all elements with similar id in symbol

    Hi,
    I use this
    var text = $("[id*='Text']");
    for call all of elements says Text1_01, Text1_02, Text2_01,....
    And this works perfectly but when the elements are in a symbol this don't work.
    Why?
    How i can do this variable?
    Thanks

    var text = sym.getSymbol('symbolname'). $("[id*='Text']");
    This ignore me and selection all of "Text" out of symbols
    var all = sym.getChildSymbols(). $("[id*='Text']");
    And this ignore all of "Text"

  • Calling all Matrox Millenium G550 graphics cards...

    Calling all Matrox Millenium G550 graphics cards...
    Has ANYONE got the Cover Flow view working with this card?
    If you have you have what did you do (if anything)?
    I've already tried:-
    * the latest Matrox drivers
    * the latest DirectX
    * ensuring that Hardware Acceleration is at Full
    * uninstall & re-install iTunes
    * install latest Quicktime before re-installing iTunes
    P4 2GHz, 1GB RAM   Windows XP Pro   SP2; Matrox G550; Dual screen

    At home, I have a Matrox Parhelia and the cover flow mode works great. I have a G550 in my work computer but I don't have any music local on the hard drive. I use my iPod Photo as axteranal HD to play via iTunes. So, cover art doesn't show up.
    However, I have brought to work some hummingbird videos that took last week and added them to the Movie section in Itunes on my Work PC. So, I tried cover flow in the movie mode. It looks awful! Each picture is made up of little pictures in a 18x9 mosaic. I can even see though the gaps where there are grid lines. I don't see this at home with the Parhelia.
    I have the latest everything installed as well. I'm running WinXP SP2. Have you found a solution?
    Thanks,
    Steven

  • When i make calls, all i can hear is static, and when i plug in headphones or turn the speaker on, it still doesnt work. but facetime, music, an apps sound still work. help? iphone 5

    when i make calls, all i can hear is static, and when i plug in headphones or turn the speaker on, it still doesnt work. but facetime, music, an apps sound still work. help? iphone 5

    Hello Delaney1130,
    It sounds like you are getting static on both the receiver and the speaker when you make a call. I would use the troubleshooting from the following article to help resolve the issue named:
    iPhone: Troubleshooting issues making or receiving calls
    https://support.apple.com/kb/TS3406
    Toggle airplane mode: Tap Settings > Enable Airplane Mode, wait five seconds, then turn off airplane mode.
    Check your phone settings:
    Check your Do Not Disturb settings: Tap Settings > Do Not Disturb.
    Check for any blocked phone numbers: Tap Settings > Phone > Blocked.
    See if Call Forwarding is turned on: Tap Settings > Phone > Call Forwarding.
    Ensure that your software is up to date:
    Check for a carrier settings update.
    Check for an iOS software update.
    Note: Some updates may require a Wi-Fi connection.
    If the iPhone has a SIM card, reseat the SIM card.
    If the iPhone 4 or iPhone 4s is on the Verizon network, dial *228 from the iPhone and select option 2 to update the Preferred Roaming List (PRL). The PRL determines the cellular towers the phone uses for cellular service, selecting those with the best signal strength.
    Reset the network settings: Tap Settings > General > Reset > Reset Network Settings.
    Try to make or receive calls in another location.
    Attempt to isolate to one network band:
    If you're having the issue on LTE, disable LTE, if possible, and try again.
    If you're having the issue on 3G/4G, disable 3G/4G, if possible, and try again.
    Contact the carrier to check the following:
    Your account is properly configured to use the specific iPhone that has the issue.
    There are no localized service outages.
    Your account doesn't have a billing-related block.
    Your calls don't have errors on the carrier system.
    Restore the phone as new.
    If the above steps don't resolve the issue, go to an Apple Retail Store, carrier, Apple Authorized Reseller, or contact AppleCare to send the phone in for service.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • When someone calls all the IPhones in the house ring, what is wrong?

    When someone calls all the IPhones in the house ring, what is wrong.

    You share the same Apple ID and in iOS 8 there is a new feature, which if you didn't share the same ID, you can answer a call on another device if one is another room as long as they are both on iOS 8.  To stop this, go to Settings > Facetime and turn off iPhone Cellular Calls.  That will stop this for you.

Maybe you are looking for

  • EA6400 with a Telus Actiontec modem/router

    I've been using the Telus modem/router for a while, and it has worked fine. Once we moved to the new place the signal got a little weak in the rooms farthest from the router, but its a little 2 bedroom single floor condo ... it's not that big. At any

  • How to use standard Infostructures for SIS Reports

    Now I see many available standard info structures in the infostructures list.Is there any way we can use the standard ones in the repoirts without the need to create infostructures?? or there any other alternative???

  • Ack.. plug-in incompatible

    Posted this but got zero answers, so here's a repost with sample code.... I am using the MultiList component from VCafe, but it has problems with the Java plug-in (on both IE and NS) I want to stick with AWT and JDK 1.1.8 for various reasons, e.g. ru

  • Remote Registy & Logical Port Exhaustion with multiple JVMs

    Hi With reference to below links: http://forums.sun.com/thread.jspa?threadID=5448277&messageID=11042211#11042211 http://forums.sun.com/thread.jspa?threadID=5450445&messageID=11050066#11050066 Will I have a solution with CORBA? (What is the correct Fo

  • Having problem with to_lob function

    Hi, Oracle DB version: 10.2.0.1.0 Tools being used: SQL Developer and SQLPlus (I have tried the query on both) Create table test col_xml LONG ...Note: We cannot convert this column to CLOB permanently because we just don't have the right to do that.