From user-return-73504-archive-asf-public=cust-asf.ponee.io@ant.apache.org Tue Aug 7 17:16:23 2018 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 AD5FF180676 for ; Tue, 7 Aug 2018 17:16:22 +0200 (CEST) Received: (qmail 64284 invoked by uid 500); 7 Aug 2018 15:16:21 -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 41892 invoked by uid 99); 7 Aug 2018 15:10:23 -0000 X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.189 X-Spam-Level: * X-Spam-Status: No, score=1.189 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=verizon.com header.b=bDAMUlPB; dkim=pass (2048-bit key) header.d=verizon-com.20150623.gappssmtp.com header.b=f4z8lS8O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verizon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=nnAN6hMMPfSczx2FI78K7G4qelDkKS0v4OfQlt1AkyY=; b=f4z8lS8OH+3cDgb0a56Z1dOtm3TI4cLA5gbPy/R7IAxEGIoBVDfVWD+qpq7C9Ix3zw Ojh8qOZOidQSTY5E039m9aFPkC0HD1PQHvWmyLQC5qMGyAQOxIIXoiCGXXHn1v7DUvQb x7rai0URWZxzqB2yMOtOBMYq0yTeJrgGJBKU2TXaZI3XtLQ3w+p8hpHDJfeYEOGG6BIu WETrzw7M9qu6MXEZ09FbAB9/ZyOBLFjBLaF0LYI8l2ljhZ1FZoPeyzPCNd4gl+AEMfBl AcSUJzk8r3buab1275619kJESbsmX/k/8jAr3CNQRXwe8jPBKlOc/uNqsQLEsAGQqQhV T+uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=nnAN6hMMPfSczx2FI78K7G4qelDkKS0v4OfQlt1AkyY=; b=kp5oRYNHC1wU2XbaRnhOy7XRxFtKvci2Yf0qx/cHOzc3tjsddNcISqyc9DfmUaA8Zp 92BM3Xa7lzDcS27kJ/5kLU0Qd5oHwDfoKeN5HhsbPE7C7mU1NCjDQToj9fjQ8Bw+A3M+ IKQyRz0DklOdPNWfBNxGrgwwLz220VmG4GPoiOPjlSSVjp1wq04CffTis1wXLWBwWXRM s3/hFQC/bJy+Y3dhmMcxRhdEYDkmVNxzRjm9A3euMNlE4y7x313EeK0iVUQph3Ua7dor 01NjPYQ9DtrSHVSn4o8/Zbans2LlD852gG9C0yfsvF/pKhX59NvX8Uu/WnacVpQkAZn9 5vgQ== X-Gm-Message-State: AOUpUlHGv9iHySESxigqxkzYxHOnckogPmT+PGxrypdjM/yXbYl+FLJg C44opufFOabuFAfuYd9TgoUnWYatEJRhz8nKKUZq3KkktA77/n5MBVbBb+x2TV6WCj6UqPLNcMS T6xDs0ViZ85nFAKIPfljafqvCkbEI X-Received: by 2002:aed:2a4a:: with SMTP id k10-v6mr19109871qtf.102.1533654611242; Tue, 07 Aug 2018 08:10:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdU9ynipZ31K+/cN0ydGSCResit0Xy7wCmsWaQL1UGuMpTu/bnkCeqDArywOwEYpWv4MksaW+fDYEG0728QtAw= X-Received: by 2002:aed:2a4a:: with SMTP id k10-v6mr19109842qtf.102.1533654610841; Tue, 07 Aug 2018 08:10:10 -0700 (PDT) MIME-Version: 1.0 References: <5D285FC05679A441ACF34A90905BFA923D6C3D54@GBEDBP01.chp.co.uk> <006e01d42c95$4edaac10$ec900430$@de> <5D285FC05679A441ACF34A90905BFA923D6C4F2E@GBEDBP01.chp.co.uk> <5D285FC05679A441ACF34A90905BFA923D6C51FC@GBEDBP01.chp.co.uk> In-Reply-To: <5D285FC05679A441ACF34A90905BFA923D6C51FC@GBEDBP01.chp.co.uk> From: Jose M Urena Date: Tue, 7 Aug 2018 11:09:34 -0400 Message-ID: Subject: Re: [DKIM:FAIL] Re: [E] Javac: Command-Line Argument Files To: Ant Users List Content-Type: multipart/alternative; boundary="00000000000049b0c00572d9ca6e" X-mailroute: internal X-Proofpoint-Spam-Details: rule=out_spam_notspam policy=out_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=7 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1808070152 --00000000000049b0c00572d9ca6e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable manifestclasspath has a maxParentLevels attribute to limit the relative path transformations, deafults to 2 https://ant.apache.org/manual/Tasks/manifestclasspath.html set it to maxparentlevels=3D"10" or something reasonable to create relative classpaths which are farther than 2 levels away from ${basedir} ../ ../../ ../../../ ../../../../ On Tue, Aug 7, 2018 at 10:57 AM Pietro Paolini < Pietro.Paolini@alfasystems.com> wrote: > Hi, > > Thanks, I think that is the way to go. I can get it to work though as the > compiler does not find the needed classes. I checked the generated jar it > looks correct. The paths are all > Relative, is that OK ? > > Compilation fails because it can't resolve many classes, follow a snipped > of my build.xml. > > > > jarfile=3D"${basedir}" > > > > > > ant.project.name}" /> > value=3D"${mine-classpath}"/> > > > [..] > encoding=3D"UTF-8" > source=3D"@{sourceVersion}" > target=3D"@{destinationVersion}" > debug=3D"@{debug}" > verbose=3D"@{verbose}" > debuglevel=3D"@{debuglevel}" > fork=3D"@{fork}" > memoryinitialsize=3D"@{minHeap}" > memorymaximumsize=3D"@{maxHeap}"> > > > > value=3D"com.querydsl.apt.hibernate.HibernateAnnotationProcessor"/> > > > > > > > > -----Original Message----- > > From: Jose M Urena [mailto:jose.urena@verizon.com] > > Sent: 06 August 2018 14:19 > > To: Ant Users List > > Subject: [DKIM:FAIL] Re: [E] Javac: Command-Line Argument Files > > > > the issue for classpath too long can be fixed by a different strategy > using > > a manifest's class-path with an empty jar file > > > > > > > > > > > > > > > > > > > > > deprecation=3D"off" > > > > > > optimize=3D"off" > > > > > > destdir=3D"${dest.dir}" > > > > > > srcdir=3D"${src.dir}" > > > > > > includeantruntime=3D"false" > > > > > > encoding=3D"ISO-8859-1" > > > > > > fork=3D"true"> > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > property=3D"pathjar.classpath" > > > > > > maxparentlevels=3D"40" > > > > > > > > > > > > > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > > > > > >> value=3D"${pathjar.classpath}"/> > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Mon, Aug 6, 2018 at 3:28 AM Pietro Paolini < > > Pietro.Paolini@alfasystems.com> wrote: > > > > > It is heavily intertwined with corporate stuff so I can't. it is a > regular > > > javac task whose class path is *huge* - the problem I reckon is that > the > > > command line parameters (which includes the > > > Classpath) do not fit into the window's command line limit. > > > > > > > > > > > > at > > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) > > > at > org.apache.tools.ant.Project.executeTarget(Project.java:1376) > > > at > > > > > > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecuto= r.ja > > va:41) > > > at > org.apache.tools.ant.Project.executeTargets(Project.java:1260) > > > at org.apache.tools.ant.Main.runBuild(Main.java:857) > > > at org.apache.tools.ant.Main.startAnt(Main.java:236) > > > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287= ) > > > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:11= 3) > > > Caused by: java.io.IOException: Cannot run program "C:\Program > > > Files\Java\jdk1.8.0_144\bin\javac.exe" (in directory "xxxxx"): > > > CreateProcess error=3D206, The filename or extension is too long > > > at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) > > > at java.lang.Runtime.exec(Runtime.java:620) > > > at > > > > > org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java1= 3 > > CommandLauncher.java:58) > > > at > org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:426) > > > at > org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:440) > > > at > > > > > > org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExt= ern > > alCompile(DefaultCompilerAdapter.java:598) > > > ... 101 more > > > Caused by: java.io.IOException: CreateProcess error=3D206, The filena= me > or > > > extension is too long > > > at java.lang.ProcessImpl.create(Native Method) > > > at java.lang.ProcessImpl.(ProcessImpl.java:386) > > > at java.lang.ProcessImpl.start(ProcessImpl.java:137) > > > at java.lang.Proc > > > > > > > > > > > > > -----Original Message----- > > > > From: Jan Mat=C3=A8rne (jhm) [mailto:apache@materne.de] > > > > Sent: 05 August 2018 09:21 > > > > To: 'Ant Users List' > > > > Subject: AW: [E] Javac: Command-Line Argument Files > > > > > > > > Could you post your buildfile snippet and the build output? > > > > > > > > Jan > > > > > > > > > -----Urspr=C3=BCngliche Nachricht----- > > > > > Von: Jose M Urena [mailto:jose.urena@verizon.com] > > > > > Gesendet: Freitag, 3. August 2018 15:02 > > > > > An: Ant Users List > > > > > Betreff: Re: [E] Javac: Command-Line Argument Files > > > > > > > > > > the following suggestion I have learned for working with Jenkins > jobs > > > > > which can have very long paths for the workspace > > > > > > > > > > 1. if you have permission on your computer/server to create windo= ws > > > > > shares and to run from shared drive, then you could save most of > the > > > > > characters to the left of your path by using PUSHD > > > > > > > > > > if your current dir is c:\users\yourname\documents\ which is 28 > > > > > characters then pushd will reduce it to 3, saving you 25 characte= rs > > > > > > > > > > net share TEMPSHORTPATH=3D%CD% /grant:%USERNAME%,FULL pushd > > > > > \\%COMPUTERNAME%.%USERDNSDOMAIN%\TEMPSHORTPATH > > > > > :: call your ant script > > > > > > > > > > ant > > > > > > > > > > :: leave the temp drive, remove it from windows shares popd net > share > > > > > /delete TEMPSHORTPATH > > > > > :: confirm share was cleaned > > > > > net use > > > > > net share > > > > > > > > > > 2. if the issue is with commands under your c:\program files, li= ke > > > > > c:\program files\oracle\jdk180\bin\javac you can try using MKLINK > to > > > > > remove spaces and shorten the path mkdir c:\dev cd c:\dev > mklink /j > > > > > jdk "c:\program files\oracle\jdk180" > > > > > > > > > > now you can use c:\dev\jdk\bin\javac which is shorter than > c:\program > > > > > files\oracle\jdk180\bin\javac > > > > > > > > > > 3. if you can not use PUSHD, mklink can be used to shorten paths > but it > > > > > is not as short as pushd mkdir c:\dev cd c:\dev mklink /j doc > > > > > "c:\users\yourname\documents\" > > > > > > > > > > > > > > > > > > > > On Fri, Aug 3, 2018 at 6:25 AM Pietro Paolini < > > > > > Pietro.Paolini@alfasystems.com> wrote: > > > > > > > > > > > Hi all, > > > > > > > > > > > > I am a bit struggling with an build.xml file task, I > haven't > > > > > > got too much experience with Ant but hopefully my question won'= t > > > > > sound > > > > > > too silly. On a window machine I reach the Command line limit > size > > > > > and > > > > > > the compiler task fails as "the extension or file name is too > long". > > > > > > > > > > > > I am wondering if it could be possible to get advantage of > > > > > > > > > > > > > > > > > > https://urldefense.proofpoint.com/v2/url?u=3Dhttps- > > > > > 3A__docs.oracle.com_j > > > > > > avase_8_docs_technotes_tools_windows_javac.html- > > > > > 23BHCJEIBB&d=3DDwIFAg&c=3D > > > > > > > > > > > > > > > > > udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=3D8XYgcdEXHJW1PQ9 > > > > xb6NrZ5vl > > > > > > BTrHBT7lhTNH6uwwINQ&m=3DLOtmbKv9Pf9JXdG7oo-wOJVmm0DBaI- > > > > > biSoqKkmRB1Y&s=3D3d > > > > > > 6wFJcoY-jzVaYoMjXRGQtLVB4MbjUD6j_Krv55Gp0&e=3D > > > > > > > > > > > > Is there a quick win on that ? I couldn't find much on Google := -( > > > > > > > > > > > > Thanks, > > > > > > Pietro > > > > > > > > > > > > > > > > > > Pietro Paolini > > > > > > Consultant > > > > > > > > > > > > Alfa > > > > > > ________________________________ > > > > > > e: pietro.paolini@alfasystems.com | w: alfasystems.com< > > > > > > https://urldefense.proofpoint.com/v2/url?u=3Dhttps- > > > > > 3A__www.alfasystems.c > > > > > > > > > > > > > > > > > om&d=3DDwIFAg&c=3DudBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=3D > > > > 8XYgcdEXHJ > > > > > > W1PQ9xb6NrZ5vlBTrHBT7lhTNH6uwwINQ&m=3DLOtmbKv9Pf9JXdG7oo- > > > > wOJVmm0DBaI- > > > > > biS > > > > > > oqKkmRB1Y&s=3DbNk8SVZHcZac3KOa02xtQCXPIhrz3JfJRZfiaFUIVUk&e=3D > > > > > > > > > > > > > t: +44 (0) 20 7920-2643 | Moor Place, 1 Fore Street Avenue, > London, > > > > > > EC2Y 9DT, GB ________________________________ > > > > > > > > > > > > The contents of this communication are not intended to be > binding or > > > > > > constitute any form of offer or acceptance or give rise to any > legal > > > > > > obligations on behalf of the sender or Alfa. The views or > opinions > > > > > > expressed represent those of the author and not necessarily > those of > > > > > Alfa. > > > > > > This email and any attachments are strictly confidential and ar= e > > > > > > intended solely for use by the individual or entity to whom it = is > > > > > > addressed. If you are not the addressee (or responsible for > delivery > > > > > > of the message to the > > > > > > addressee) you may not copy, forward, disclose or use any part > of the > > > > > > message or its attachments. At present the integrity of email > across > > > > > > the internet cannot be guaranteed and messages sent via this > medium > > > > > > are potentially at risk. All liability is excluded to the exten= t > > > > > > permitted by law for any claims arising as a result of the use = of > > > > > this > > > > > > medium to transmit information by or to Alfa or its affiliates. > > > > > > > > > > > > Alfa Financial Software Ltd > > > > > > Reg. in England No: 0248 2325 > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For > > > > > additional > > > > > > commands, e-mail: user-help@ant.apache.org > > > > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------= -- > > > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > > > For additional commands, e-mail: user-help@ant.apache.org > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > --00000000000049b0c00572d9ca6e--