Can files be group added to AIR package?

In using IntelliJ IDEA, it is mind-numbingly huge chore simply adding the proper files to the proper places in my AIR Package build configurations.

Is there a simple way to add a single folder full of multple files to the package list in the AIR Package options in a build configuration?

Each time I've tried to add a folder of files, it simply adds the folder with no contents. In the adt binary (which is what the compiler uses), this can be done with a simple parameter. It would be great not to have to rely on the command line.

Rider question: In my case, I am dealing with a large and growing group of files and child folders filled with their own structures which need to be added to my AIR captive runtime build. These files exist outside of the source root folder proper, but in the project root folder (where the .idea config resides). Adding such files completely destroys the relative pathing in the package of each file after it is added, so I am forced to type in the relative path prefix manually after adding each file. Is there a way that I can add files from the project root that would preserve their relative pathing in the package?

2 comments
Is there a simple way to add a single folder full of multple files to the package list in the AIR Package options in a build configuration?

Yes, you select path to the folder in the left column of the 'files and folder to package' table and folder naem or '.' in the right column. If theres folder name in the right column then the folder itself with all its contents is added to the package. If there's '.' then folder contents is added directly to the root of the package.

Each time I've tried to add a folder of files, it simply adds the folder with no contents. In the adt binary (which is what the compiler uses), this can be done with a simple parameter. It would be great not to have to rely on the command line

I've never seen folder added without contents. Yes, IntelliJ IDEA uses adt for packaging. You'll see adt command line if packaging error happens. For example add some syntax error to your AIR descriptor template and you'll be able to check if everything is correct in the adt command line.

Rider question: In my case, I am dealing with a large and growing group of files and child folders filled with their own structures which need to be added to my AIR captive runtime build. These files exist outside of the source root folder proper, but in the project root folder (where the .idea config resides). Adding such files completely destroys the relative pathing in the package of each file after it is added, so I am forced to type in the relative path prefix manually after adding each file. Is there a way that I can add files from the project root that would preserve their relative pathing in the package?

Do you mean that you select [project root]/subfolder/file.txt abd get relative path as file.txt instead of expected subfolder/file.txt?May be you should select the whole [project root]/subfolder instead?

0

It is working now after I created a new build configuration. Thanks for your input. :)

The path workaround question is irrelevant now that I have it working.

0

Please sign in to leave a comment.