Dear ivyteam

According to the documentation we can configure additional behaviour for the automatic deployment with a deploy.options.yaml file. Our package currently looks as follows:

application.zip
    projectA-1.0.iar
        ...
        deploy.options.yaml
    projectB-2.4.iar
        ...
        deploy.options.yaml

In the yaml files we configured properties like fileFormat: EXPANDED. Unfortunately this did not work and the iars were deployed packed. Only after we added a deploy.options.yaml file to the zip the iar were deployed expanded. Is this expected behaviour? The documentation is not very clear about that. (We're using ivy 7.1.x by the way)

We would like to have a yaml file per iar as the target version may be different for each iar. Is this supported?

Best regards, Lars

asked 05.02 at 12:04

Lars%20Tuchel's gravatar image

Lars Tuchel
29651016
accept rate: 60%


Looks like a forgotten use case to me.

We intended the deploy.options.yaml to live only in the root artifact to deploy. So if you deploy an single IAR, it is used for this IAR. If you deploy a whole app.zip it is used for all projects within this zip. So we did not think that a project within the App.zip need different deploy.options than the other projects that contribute to the app. But i think you should open an issue for it, if you need that feature.

The open question is why you rely on expanded project files at all. We only introduced this flag for legacy compliance. If you are drafting a new App right now, you should get rid of the code that needs an expanded project. In most cases code that relies on plain java.io.File API causes the issues and could be easily transformed into Input-/OutputStream read/writes.

link

answered 12.02 at 02:46

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
8.0k11550
accept rate: 68%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×17

Asked: 05.02 at 12:04

Seen: 218 times

Last updated: 12.02 at 02:46