the above mentioned command line argument works well when i just put the static path in autoexport.js with having the ExportResource function that is made to be run. in this way its fine.
like this
ExportResource()
{
the code here;
}
As far as I’m aware, you can not pass in any parameters from command line.
I would provide them through a plain text file that stores all those command tuples in distinct lines through which the script then would iterate.
You can even expand them to tripplets (command, source, target) should you need that because you do other things through command line too in the build.
That is by the way also more flexible as you can create a small standalone app to generate the “build request text file” I mentioned above.
You tell unity which script to start and the script then has to fetch the parameters from some source, my suggestion is a file where you list all the jobs it has to do and write the script in a looping way so it goes through all jobs in one go (-> batch processing of the jobs and the text file beeing a list of batch operations)
Thanks dreamora
for letting me know the right track, actually i was trying somehow or than, but with your responsed i can get focused now,
Just one more thing is it possible to get data from .RTF file (as i am on MAC now) from the main JS file in which the function is made. Or i should try it out with the another JS file itself instead of .RTF