Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9240287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:09:47+00:00 2026-06-18T08:09:47+00:00

I have created Java FX bundle for Mac OS X using Ant. It creating

  • 0

I have created Java FX bundle for Mac OS X using Ant. It creating bundle with two files –
1. MyApplication.app
2. MyApplication.dmg

I wish to copy both files at other folder, so I wrote command in my build.xml as –

<copy todir="my_new_folder">
   <fileset dir="old_folder\bundles"/>
</copy>

It copying both files successfully at “my_new_folder”. But on running .app from “my_new_folder” not launching my application though it is launching from “old_folder” correctly.

On comparing copied app I found that on exec (Unix Executable File) resided at MacOS folder (“Show Package Contents/Contents/MacOS”) not preserving, its kind been changing in document file.

How to preserve its kind to Unix Executable File as I am simply executing simple copy directory.

Thanks,
Neelam Sharma

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:09:48+00:00Added an answer on June 18, 2026 at 8:09 am

    As noted in the ant copy task guide:

    Unix Note: File permissions are not retained when files are copied; they end up with the default UMASK permissions instead. This is caused by the lack of any means to query or set file permissions in the current Java runtimes. If you need a permission-preserving copy function, use this instead:

    <exec executable="cp" ... >
    

    So, in your case, replace <copy> with:

    <exec executable="cp">
        <arg line="-R old_folder/bundles my_new_folder"/>
    </exec>
    

    (note that you should use forward slashes, even if this ant script is being used under Windows).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a java application on netbeans 7 .Now By using netbeans ihave
I have certificate created using java class CertAndKeyGen and X500Name and I am able
I want to create a Java application bundle for Mac without using Mac. According
I am creating a Jigsaw Puzzle application in android. I have created two activites,
I have created a Java app (deployed by Java Web Start) which needs to
I have created an app which retrieves the data from a url using xml
Using last Adfonic Sdk, and the Android guide : http://developer.adfonic.com/index.php/Android_SDK I have created two
I have created a Java web service and I am trying to access this
i have created a java project in eclipse,in this project i have an html
I have created a java application for Debian Linux. Now I want that that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.