Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing environment variables from build.env fails #45

Open
joellutz opened this issue Oct 10, 2022 · 1 comment
Open

Importing environment variables from build.env fails #45

joellutz opened this issue Oct 10, 2022 · 1 comment

Comments

@joellutz
Copy link

My build.xml:

<project name="build.env Test" default="" basedir="." >

	<property name="local.property" value="local setting" />

	<target name="test" >
		<echo message="local.property = ${local.property}" />
		<echo message="ENV_VAR1 = ${ENV_VAR1}" />
		<echo message="ENV_VAR2 = ${ENV_VAR2}" />
	</target>

</project>

My build.env:

ENV_VAR1=my setting
ENV_VAR2=C:\some\path

My settings for the env vars file:
grafik

All files are in the same root folder from which I run the target.

Output:

test:
[echo] local.property = local setting
[echo] ENV_VAR1 = ${ENV_VAR1}
[echo] ENV_VAR2 = ${ENV_VAR2}

BUILD SUCCESSFUL
Total time: 0 seconds

As you can see, the variables from build.env are not loaded. Is there a way to fix this?

@vbresan
Copy link

vbresan commented Feb 3, 2024

Any progress on this? My environment variables don't load either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants