Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 064AD1D89 for ; Wed, 20 Apr 2011 19:46:05 +0000 (UTC) Received: (qmail 5931 invoked by uid 500); 20 Apr 2011 19:46:02 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 5859 invoked by uid 500); 20 Apr 2011 19:46:02 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 5827 invoked by uid 99); 20 Apr 2011 19:46:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 19:46:02 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cikasfm@gmail.com designates 209.85.220.171 as permitted sender) Received: from [209.85.220.171] (HELO mail-vx0-f171.google.com) (209.85.220.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 19:45:55 +0000 Received: by vxc40 with SMTP id 40so947007vxc.30 for ; Wed, 20 Apr 2011 12:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=7jJJBZ1+iAZtY6l70S8TbL23Z4Guob6+Bl3a8Y5aVUU=; b=fQDzpmRfaL1xGgbx7bIvuUcDgMSeHpsLJFJ12jjwAUio3CQ/2oLuwsXWGiGfST0NLJ o8hg/RFzrbN+5Kt/5FjIM575lXfWeAJHP08mOwlyGDgplFnzr+Mxr3mV0uWeIQ6M8KB0 6UPxosCj/fRnT2S96BWQCogMwsJDlGxTgQzFI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=im6jJQR5HbAfJoH1nSuzSnfdGTCo6nCmho91bGq2szvlku03ku+r5yHlBt3FlPjgj7 a17iFy7rBa/UKHX+eLWX2MjMq+Yla2PlXCvJ26v7Mxo3OIIRONJLrA/jO3NnOzW0g5zP MebIJf8DP4cSQ0TnpLxOUKTZwPSDwjjp5e52Y= Received: by 10.52.101.193 with SMTP id fi1mr5687985vdb.162.1303328734102; Wed, 20 Apr 2011 12:45:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.108.135 with HTTP; Wed, 20 Apr 2011 12:45:14 -0700 (PDT) Reply-To: cikasfm@gmail.com From: Zilvinas Vilutis Date: Wed, 20 Apr 2011 12:45:14 -0700 Message-ID: Subject: java file path in exec:java To: Maven Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi maven users! I'm trying to execute a java command and pass a path to a file as an argume= nt: org.codehaus.mojo exec-maven-plugin java ${project.build.outputDirectory} runtime -c ${project.build.outputDirectory}${file.separator}orm.properties com.company.deploy.product.AutomatedProductDeploy And I'm using maven properties to construct the filename: ${project.build.outputDirectory}${file.separator}orm.properties Unfortunately, I'm getting an exception from the java class I'm running: Caused by: java.io.FileNotFoundException: C:\\target\classes\orm.properties (The filename, directory name, or volume label syntax is incorrect) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:106) Most likely the it is using the argument and does not escape slashes to new java.io.File( filePath ) As I don't have access to source code of the class - is there any way to enforce maven use unix style path generation on windows? ( change slashes to "/" ) I tried to override the ${file.separator} property - but it seems to be read-only and doesn't help. Any ideas? Thank you! =C5=BDilvinas Vilutis E-mail:=C2=A0=C2=A0 cikasfm@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org