Comments (5)
also config.common.xml needs to be in C:\Tools\AutoTx
but autotxconfigtest.exe does NOT complain about this file is missing
PS C:\Tools\AutoTx\conf> ..\AutoTxConfigTest.exe
Trying to parse configuration files from [C:\Tools\AutoTx\]...
[Error] mandatory parameter missing: <IncomingDirectory>
System.Configuration.ConfigurationErrorsException: mandatory parameter missing: <IncomingDirectory>
at ATxCommon.Serializables.ServiceConfig.<ValidateConfiguration>g__CheckEmpty|152_0(String value, String name)
at ATxCommon.Serializables.ServiceConfig.ValidateConfiguration(ServiceConfig c)
at ATxCommon.Serializables.ServiceConfig.Deserialize(String path)
at ATxConfigTest.AutoTxConfigTest.Main(String[] args)
from auto-tx.
AutoTxConfigTest.exe is look for the config in the same folder as the exe file - not mentioned in the documentation
from auto-tx.
Hi @mathse,
thanks for the feedback. Actually, AutoTxConfigText.exe
is looking in its own location for the configuration files to check only if nothing is specified on the command line. This is done using a very simple approach in the Main()
method as seen here (no smart command line parameter parsing at all!):
auto-tx/ATxConfigTest/AutoTxConfigTest.cs
Lines 16 to 20 in 2e06700
The tool was created to be used by the Update-Service.ps1 script, where it is used in the Config-IsValid
function (see line 384 for the call):
auto-tx/Updater/Update-Service.ps1
Lines 364 to 395 in 2e06700
However, the tool is also intended for direct use on the command line. So this should indeed be documented better, and it would definitely be smarter to look in the (new) default location for the config files. Forgot to reflect this when changing the config location and never ran into problems myself since the updater is calling configtest with an explicit path...
Cheers,
Niko
from auto-tx.
Just for completeness:
AutoTxConfigTest.exe is look for the config in the same folder as the exe file - not mentioned in the documentation
this behavior is explained in the corresponding README here:
auto-tx/ATxConfigTest/README.md
Lines 8 to 9 in 9798e70
If you have any suggestions where else this should be mentioned, please let me know - happy to update the documentation about this!
from auto-tx.
With commit 3752c5e the configuration tester is now looking in the var/
subfolder for the config files by default.
from auto-tx.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-tx.