From user-return-73496-archive-asf-public=cust-asf.ponee.io@ant.apache.org Fri Aug 3 17:04:42 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 BEEDC180647 for ; Fri, 3 Aug 2018 17:04:41 +0200 (CEST) Received: (qmail 9737 invoked by uid 500); 3 Aug 2018 15:04:40 -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 37633 invoked by uid 99); 3 Aug 2018 13:02:48 -0000 X-Virus-Scanned: Debian amavisd-new at spamd2-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: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=verizon.com header.b=JHdVP2Jp; dkim=pass (2048-bit key) header.d=verizon-com.20150623.gappssmtp.com header.b=JyLOXkhj 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=Hn8gMzvZG2B6ztlNnzfUvk6lS2nCI16i7kYY2A3C5Qg=; b=JyLOXkhjO7YqaXh5er7P7mP4giunUEEC+wU687w3ED8ZjqGbr0RRKpWSqwwp6JTNzE emd6mfnwIDeHJI6tiVF0IQMzXEr235chjMX/Ao6lQ2jdZDmHAQEvtfmaG9djdvEbjqmR OYtrbuvzc0/uQ3macHj5axZrdpiCObBMk/6OiUoL8BlAG3SG9XygDkBTcysxcy+w8wRJ 70ZD6CaOW1ydpWaL81gK3eQ55HfbvTF0E9yBf5TIG+DE6pS9L4JzKpl/D40/hp7uDoMW snyBAtaqSbNAOontZaSwmJzDC9F/BWZ/uNPHq9bQwU2RL0NjEABbuRuUxYAgZJfjnt0U oE1w== 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=Hn8gMzvZG2B6ztlNnzfUvk6lS2nCI16i7kYY2A3C5Qg=; b=Aryf1c43Akxjxgm4gbTeU5mda1d5T0/79wIZlBoPQXKWmZklYT5yAGDXPKREcY8XsU x2BKt8vWbI3lNLw24Wrp1qLpukCcrz84byIizuA6n9R7PXYakdVin3GkEyVKeXseT/ol cfCe/7f1q07bp4i3H8obwqEF9eAUJfHp+uNR4ySM/v/FBVM59hbIfECLNz6CTeFFQE5U Z55Qr1vk5LanKTFI73ZrVLBsx1zVHeyOofBc2IUG0aoChk0O1R6M0jO7NWNZL3/6Qlku vIVKx/1dnfwodnoWVqxYNuYB1cLqPtfMC2wPdFL6jRFmISBhte38PHsaFVy/izeMOl7+ GQDw== X-Gm-Message-State: AOUpUlEQQVUCxHczgEqsaPKMoQUSVe5xIuEMpzivNIKunEuFghwK4DMq BGrL0hTVMjr1CupRkaY5NSKheiKKUWR81HGCUNEdrLsICo8Wv/TN9y7EFUzPS/CzNTiW8t4JazG 2VEdOjRXowpB+C9S0l3/rEHnS+3tv X-Received: by 2002:a5d:5349:: with SMTP id t9-v6mr2451831wrv.186.1533301355054; Fri, 03 Aug 2018 06:02:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc1SIzKJ/xF2CE/DfbSN1TIR7zVPLBm6maFh5KwLjilcT0taF7hfBAcZnQNwreCTZS05OC1wSxtnf7EXTIE4Kg= X-Received: by 2002:a5d:5349:: with SMTP id t9-v6mr2451821wrv.186.1533301354870; Fri, 03 Aug 2018 06:02:34 -0700 (PDT) MIME-Version: 1.0 References: <5D285FC05679A441ACF34A90905BFA923D6C3D54@GBEDBP01.chp.co.uk> In-Reply-To: <5D285FC05679A441ACF34A90905BFA923D6C3D54@GBEDBP01.chp.co.uk> From: Jose M Urena Date: Fri, 3 Aug 2018 09:01:57 -0400 Message-ID: Subject: Re: [E] Javac: Command-Line Argument Files To: Ant Users List Content-Type: multipart/alternative; boundary="000000000000974f2d0572878a4e" 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=1011 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-1808030145 --000000000000974f2d0572878a4e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 windows 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 characters 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, like 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_ja= vase_8_docs_technotes_tools_windows_javac.html-23BHCJEIBB&d=3DDwIFAg&c=3Dud= BTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=3D8XYgcdEXHJW1PQ9xb6NrZ5vlBTrHB= T7lhTNH6uwwINQ&m=3DLOtmbKv9Pf9JXdG7oo-wOJVmm0DBaI-biSoqKkmRB1Y&s=3D3d6wFJco= Y-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.co= m&d=3DDwIFAg&c=3DudBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=3D8XYgcdEXHJ= W1PQ9xb6NrZ5vlBTrHBT7lhTNH6uwwINQ&m=3DLOtmbKv9Pf9JXdG7oo-wOJVmm0DBaI-biSoqK= kmRB1Y&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 are intended > solely for use by the individual or entity to whom it is addressed. If yo= u > 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 extent 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 > > --000000000000974f2d0572878a4e--