Gradle:上课没有这样的财产?

时间:2015-11-18 14:18:22

标签: java groovy gradle

我正在尝试使用最新版本的build.gradle编译现有代码库。由于模块project.setProperty("doNow", true) 文件中的以下行,构建失败:

 No such property: doNow for class: org.gradle.api.internal.project.DefaultProject_Decorated

出现此错误:

setProperty

我是否需要在导致错误的行之前在build.gradle中声明此属性?

来自 private void JitaOrePrices() { ListViewItem itm; //listview settings. listView1_Jita.View = View.Details; listView1_Jita.GridLines = true; listView1_Jita.FullRowSelect = true; //convert to string. string string1 = "http://api.eve-central.com/api/marketstat?typeid=34& minQ=1&typeid=35&minQ=1&typeid=36&minQ=1&typeid=37&minQ=1&typeid=38& minQ=1&typeid=39&minQ=1&typeid=40&minQ=1&typeid=11399&minQ=1& typeid=27029&minQ=1&usesystem=30000142"; // add colums to put into. listView1_Jita.Columns.Add("Type", 35); listView1_Jita.Columns.Add("(B)", 43); listView1_Jita.Columns.Add("(S)", 43); //set arrays to put into. string[] arr = new string[3]; XElement xdoco = XElement.Load(string1); XmlDocument doco = new XmlDocument(); doco.Load(string1); XmlNodeList Blist = doco.SelectNodes("/evec_api/marketstat/type"); XmlNodeList Clist = doco.SelectNodes("/evec_api/marketstat/type/buy"); XmlNodeList Dlist = doco.SelectNodes("/evec_api/marketstat/type/sell"); foreach (XmlNode xnod in Blist) foreach (XmlElement znod in Clist) foreach (XmlElement dnod in Dlist) { if (xnod.Attributes["id"] != null) arr[0] = xnod.Attributes["id"].InnerText; arr[1] = znod.SelectSingleNode("max").InnerText; arr[2] = dnod.SelectSingleNode("max").InnerText; itm = new ListViewItem(arr); itm.Font = new Font("Tahima", 9); listView1_Jita.Items.Add(itm); } } 的gradle文档:

  

设置此项目的属性。此方法搜索属性   在以下位置使用给定名称,并设置属性   在它找到财产的第一个地方。

1 个答案:

答案 0 :(得分:4)

尝试:select