From user-return-73558-archive-asf-public=cust-asf.ponee.io@ant.apache.org Thu Feb 28 17:00:18 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 91792180657 for ; Thu, 28 Feb 2019 18:00:17 +0100 (CET) Received: (qmail 89236 invoked by uid 500); 28 Feb 2019 17:00:16 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 89220 invoked by uid 99); 28 Feb 2019 17:00:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2019 17:00:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 69958182EBC for ; Thu, 28 Feb 2019 17:00:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.05 X-Spam-Level: X-Spam-Status: No, score=0.05 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=bellsouth.net Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id q6EuTB9wgKCx for ; Thu, 28 Feb 2019 17:00:12 +0000 (UTC) Received: from sonic306-24.consmr.mail.ne1.yahoo.com (sonic306-24.consmr.mail.ne1.yahoo.com [66.163.189.86]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4A9B45F643 for ; Thu, 28 Feb 2019 17:00:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bellsouth.net; s=s2048; t=1551373205; bh=40UK2aDB/YQSC93hXdVc6wFLFWbwZg4xb6kPRx57yRY=; h=Subject:To:References:From:Date:In-Reply-To:From:Subject; b=EDUeysxIackywV1w6w97mvsRDyVpQ34a1wK1qoh0+K42839B8h5dgcFp2DtaISM26uyIggf//h3GpcMfY05Xnrxqni1v35EFndXJN5PN4Q9XyKXkR+eqesvOlI1pyLDLKjOEle8q/2baodKm15dTAv+0pENBToKQ9HqwurkMz4GgWtIC1lK82cp3gKY48nhzB/YJ5pmumNwOp2cQy47USbJ2KVB1EkUO9/m2Mky3ZHuJ/usnVWfpg2+R9HppjnFbfKLN239fRc3PGMvD9QjR6g1Alq77M9BZ/m1rNubAjuDSHotqCJYkLf1bCSK/VzfPGN4cstl23ISjiujUS3kPMA== X-YMail-OSG: dZm.onAVM1mEyam41ZZ6APsBZZthAiewhw60Y.nhXgTiwkNSK5ouFQNm2AX5asH XzsNntJKk5zP_oDlZUe7g1UJamBAiHvkY2UcajU7jvr1SELCDxNX5qQlK__LfcACQxYC6RJm1G29 57Alvlb5ffbK_zfk5.yu5ELKTvHh0qWNZSrBJKfLdTXBo.a1lo5LnPyWXiaHbceFMXmN6iNNcQSG r53g1AR6NfLO_m1RxnvlW.Sn5Y45.BRufKlBIZZtb3BMgP.9_LTNgdhU1vI8YNYL7U8MH7QVxrxd CsngvJPp7mmZsO7CGLicGcUXtsB1Xs4NsIkKwjBvyzvSWxr2kw5NsrBXoDw29gfts3sQGkPyM5of nid6G._PzV.r1WbpfudtcxMgJ86yfwJY4eG7Rt_yV8.7colIv0V0CAB1mqpuopy9lqPzZemzLxNV _JjoVGgZ0YzevReVN1Is10q1eHH3mIctrMY3eppVqHCOnsYczfDTG3d7ZUXLSJHPGzvVTTBqTLQl PmCcnRV3XMD1F2vOW31MzLzDGXh7HGA1Y.Jj13VwluYDmdFsMwBj3keDCFbVOrAluWaT6WqMDkTX 8nAgmXdXGu3jPzuVr7lkx8rVOYEPwZJRLKNmbs.7cjuuctM8LcUnPthuCrMMJH8RNo.B5oSWcMAT niNRc5lW6P0Mc9ABXVPdSb4Pvk7f0eVONcVrrVMInRg5K_oL3ZdOdeP4rdb_sf8MqShZjuT0Iy7g yluygqbfwexnbvtsWi4dJzpeY4huun.6u7yPZSKPuF1SX_lpdOebELcYQ6aqm13AhuV4m7YYa45n dTS1XwqzjpOx3LdAkpW7BGgWfyQBNvJuivbWAYto78WtAT8dWBz9M_DKIeSUXXeGM3oNPMiC2eUm MuyqYnn4amPxgRQ_nbvByvNDeOrJtOx9okUNAgq2PFPuGrxWGs7ggGe6RTpP63fw0lzeLmlAeiz7 fVTBDymM.8B.SytSqNQi6DnuCGDuhNGA6BBt4tKbGuJhinhLhdJzDnKlsV6SJxxqdTSKX90AYdL8 GGvSqTQoiGYi18qwzoJF1wVkw.QwV1ttTpHxdlknGctp88KXT.6b7sB3Pn9to2E_hcUAPlxZVuSA JpA2Uiu8z Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Thu, 28 Feb 2019 17:00:05 +0000 Received: from 162-230-29-192.lightspeed.tukrga.sbcglobal.net (EHLO [192.168.0.102]) ([162.230.29.192]) by smtp401.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID c0aaad38f137d547b2e5f291cefbc410 for ; Thu, 28 Feb 2019 17:00:01 +0000 (UTC) Subject: Re: AW: Javac Run By Ant Script is Unable to Find External Jars To: user@ant.apache.org References: <02645207-e0ee-69e9-65db-5fb7c3f38287@bellsouth.net> <29875175-fcfc-23a1-ef1e-74734ab915aa@bellsouth.net> <0e209819-4ca4-0228-81d4-9f4960d8c1e8@bellsouth.net> <00751316-14b2-413c-335b-2b96fbb3ab8f@apache.org> <3d120ae0-ab3f-08d8-a772-ac25ff4863c8@bellsouth.net> <002301d4c95a$0a7b2830$1f717890$@de> <8bb7885b-3fed-48a2-4a92-e34219f739b6@bellsouth.net> <8b551ab8-034b-a843-7f7a-7aa2361a52f7@bellsouth.net> <006301d4cf77$cc404950$64c0dbf0$@de> From: Dennis Putnam Openpgp: preference=signencrypt Autocrypt: addr=dap1@bellsouth.net; prefer-encrypt=mutual; keydata= xsDiBD7uAhwRBADrOwguPXQyhbUDGKL2Uey6/aOXHeT4cuhfh1hXWyhAHxJzb2p4xDJLqxdX i/iAbMb+6Y1GGoLU3cXmDBo50+OAqVRPSxi1M1+uP287/uz2to0xhPCOGot1F0bjbwmxVtWm THsnnQTSjEoZETZB7/mnbOwD7sioReNEVHvTmwwRhwCg/7UxK/vZYr0xOKjXsUxdbnTTT58D /A9b7wfkEqKNpWvMy7Oh9T9s7naq7HixxidivyOoAMPKz6lYaHP+FZyPW/+i0lB4lN5mvndZ qoLMHG8gqqRVCXBCjnVvukg/DA5BMsGgmkoN2+VnR04HsNJoaoiu2IqjBtw2OxyRM6MI2uQN xUsdogbxvy+L2y8udkSJdfO7QdCHBADBkRFHdRyRq/uq2VW+82PlzADmy3L+bypbmJvVVdMT i1LHu9pZ2fPY9h1Wo4+aUdpp/xuFAQTrmAlsl7PB+Uxweb4/yBkeBCz/HbOp5pZFbYV040Gr lMMbAuWGiwQ8t0fzD+g1P/u3BzQfC9XbGd2jy7pd81GZRm18cozfeOlNZs0iRGVubmlzIFB1 dG5hbSA8ZGFwMUBiZWxsc291dGgubmV0PsJOBBARAgAOBAsDAgEFAlpOQqkCGQEACgkQ/fiW YqZ2tVShGwCfbROiENYcACS4WZGMxPQ2ZdJV0cYAnioFIPK5mMvje1c4a5NwBfq52RWKzsFN BD7uAhwQCAD2Qle3CH8IF3KiutapQvMF6PlTETlPtvFuuUs4INoBp1ajFOmPQFXz0AfGy0Op lK33TGSGSfgMg71l6RfUodNQ+PVZX9x2Uk89PY3bzpnhV5JZzf24rnRPxfx2vIPFRzBhznzJ Zv8V+bv9kV7HAarTW56NoKVyOtQa8L9GAFgr5fSI/VhOSdvNILSd5JEHNmszbDgNRR0PfIiz HHxbLY7288kjwEPwpVsYjY67VYy4XTjTNP18F1dDox0YbN4zISy1Kv884bEpQBgRjXyEpwpy 1obEAxnIByl6ypUM2Zafq9AKUJsCRtMIPWakXUGfnHy9iUsiGSa6q6Jew1XpMgs7AAICB/95 AiJ9EDojDAaCCLfKc/nO58mpQiqpJ4Mecs5viPfhjzuqzE8TVegLA4jWjrsun2eE/M357NJA mZvvGeRsunHfxeq9JZ8R/yYTC4/trW19trU77LE61If51O0MRIh+wODfjZPxrZN5cQ/3l/as hZrZMD3jHo2rvzA2Oq1LQyqZWRIaD42vor6SOJj//81bEIb3N3uCh5EEpXT+EzXTgGF7Wrng oNVmehu92wtV5h8IoHfzcODwcXEk6C7d9nVqW6TNSfJM7/GBSvbxTSQTK/7fn/5QphDIf7V+ +Et0Xe6gA/sUA9Fd8m1MQUs1KJnuOWjw5qQ3sCwyL6eG7qVtFNoOwkYEGBECAAYFAj7uAhwA CgkQ/fiWYqZ2tVTabgCfUed1hVCTMDNx0+WS0NDgrYZpQ00AoOjRozaRTJcR8Fmp8ehnmx1O XGif Message-ID: <6b767528-311e-fa7a-5869-c123894d4854@bellsouth.net> Date: Thu, 28 Feb 2019 12:00:01 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.2 MIME-Version: 1.0 In-Reply-To: <006301d4cf77$cc404950$64c0dbf0$@de> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iC3946Z1Iv7XfFuBtiTnD0IlH3rnKfFE1" --iC3946Z1Iv7XfFuBtiTnD0IlH3rnKfFE1 Content-Type: multipart/mixed; boundary="AHdBSc575C4iW5RXnJcjqbfu6SVoqkYYk"; protected-headers="v1" From: Dennis Putnam To: user@ant.apache.org Message-ID: <6b767528-311e-fa7a-5869-c123894d4854@bellsouth.net> Subject: Re: AW: Javac Run By Ant Script is Unable to Find External Jars References: <02645207-e0ee-69e9-65db-5fb7c3f38287@bellsouth.net> <29875175-fcfc-23a1-ef1e-74734ab915aa@bellsouth.net> <0e209819-4ca4-0228-81d4-9f4960d8c1e8@bellsouth.net> <00751316-14b2-413c-335b-2b96fbb3ab8f@apache.org> <3d120ae0-ab3f-08d8-a772-ac25ff4863c8@bellsouth.net> <002301d4c95a$0a7b2830$1f717890$@de> <8bb7885b-3fed-48a2-4a92-e34219f739b6@bellsouth.net> <8b551ab8-034b-a843-7f7a-7aa2361a52f7@bellsouth.net> <006301d4cf77$cc404950$64c0dbf0$@de> In-Reply-To: <006301d4cf77$cc404950$64c0dbf0$@de> --AHdBSc575C4iW5RXnJcjqbfu6SVoqkYYk Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US Hi Jan, That was it. Thanks. I had that at one time but I thought those were no longer necessary since I added all the pom and maven stuff. Now I'm not sure what is necessary but since it is working I'll leave it alone. On 2/28/2019 10:10 AM, Jan Mat=C3=A8rne (jhm) wrote: > I think Eclipse is creating a shaded jar, means a jar which contains al= l external jars. > > So you would have to download these jars and include their content in y= our final archive. > > You could use for getting their content > > > > > > > > =20 > > Jan > > =20 > > Von: Dennis Putnam [mailto:dap1@bellsouth.net]=20 > Gesendet: Donnerstag, 28. Februar 2019 10:53 > An: user@ant.apache.org > Betreff: AW: Javac Run By Ant Script is Unable to Find External Jars > > =20 > > I've figured out what the problem is but I don't know what to do to fix= it. When I export the jar from Eclipse, it has this set of directories: > > KCBSEvents > META-INF > mozilla > org > src > > That is the one that works. When I build the jar using ant (below), the= se are the directories present: > > KCBSEvents > META-INF > > It is obvious now what the problem is. I just need to know how to get a= nt to include those same directories. > > On 2/21/2019 10:18 AM, Dennis Putnam wrote: > > I found an article on adding Maven dependencies to my ant script. While= I'm getting a successful build but the same exception when I run the jar= , I hope this is getting me closer. At least the pom.xml is in the build.= I am wondering if the added fileset is right and working. Here is my lat= est: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > = > > > > > > > > > > > > > > > > > > On 2/20/2019 3:22 PM, Jan Mat=C3=A8rne (jhm) wrote:=20 > > If you have created your JAR the first step is done. > =20 > Starting the JAR could be done in several ways. Common is that you have= to have all external classes on the runtime classpath: > =20 > =20 > =20 > 1. Hard coded start script. > =20 > Write a bash/bat-Script with the java command with all cp settings, e.g= =2E (bat) > =20 > @echo off > =20 > java -cp /build/myjar.jar;lib/one.jar;lib/two.jar;lib/three.jar org.acm= e.Main %* > =20 > =20 > =20 > 2. Wrapper script which collects all JARs in a dynamic way (see ant.bat= |ant.sh) > =20 > =20 > =20 > 3. Use Ant + for starting > =20 > =20 > =20 > 4. Create a runnable JAR which references the external JARs (manifest: = main-class + classpath) > =20 > =20 > =20 > 5. Create a shaded jar (uber jar, fat jar): include all classes from ex= ternal jars into your jar > =20 > =20 > =20 > 6. Use a launcher which uses a dependency manager for getting the class= path > =20 > =20 > =20 > =20 > =20 > =20 > =20 > You don't have to replicate path definitions in your buildfile, you cou= ld (and should) use references: > =20 > =E2=80=A6 > =20 > > =20 > =20 > =20 > =20 > =20 > You mave have a look at http://ant.apache.org/manual/tutorial-HelloWorl= dWithAnt.html > =20 > =20 > =20 > =20 > =20 > Jan > =20 > =20 > =20 > > =20 > > =20 > > --AHdBSc575C4iW5RXnJcjqbfu6SVoqkYYk-- --iC3946Z1Iv7XfFuBtiTnD0IlH3rnKfFE1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) iEYEARECAAYFAlx4E5IACgkQ/fiWYqZ2tVRRkQCg++Qk4gml1t43JsBiOSWOJpHQ NP4AnAsW0BqvRr0d9ZliaoYzHmcrQyO9 =H3P+ -----END PGP SIGNATURE----- --iC3946Z1Iv7XfFuBtiTnD0IlH3rnKfFE1--